[Pkg-owncloud-commits] [owncloud] 40/66: Check whether the Key is set

David Prévot taffit at moszumanska.debian.org
Fri Apr 18 22:49:46 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v5.0.15
in repository owncloud.

commit 3f5038adef6b7254f8f4376ae3e06b06fd648c4f
Author: Lukas Reschke <lukas at statuscode.ch>
Date:   Tue Feb 18 12:47:05 2014 +0100

    Check whether the Key is set
---
 core/ajax/appconfig.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/ajax/appconfig.php b/core/ajax/appconfig.php
index 6629d8a..1d066d9 100644
--- a/core/ajax/appconfig.php
+++ b/core/ajax/appconfig.php
@@ -15,7 +15,7 @@ $app=OC_App::cleanAppId(isset($_POST['app'])?$_POST['app']:$_GET['app']);
 // on its own. This should only be possible programmatically.
 // This change is due the fact that an admin may not be expected 
 // to execute arbitrary code in every environment.
-if($app === 'core' && (substr($_POST['key'],0,7) === 'remote_' || substr($_POST['key'],0,7) === 'public_')) {
+if($app === 'core' && isset($_POST['key']) &&(substr($_POST['key'],0,7) === 'remote_' || substr($_POST['key'],0,7) === 'public_')) {
 	OC_JSON::error(array('data' => array('message' => 'Unexpected error!')));
 	return;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list