diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-06-08 22:30:02 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-06-08 22:31:44 +0200 |
commit | bdd12df4a2907060f599f999077f0d8bcb3ed636 (patch) | |
tree | a3bdc01199d1584fca4b748b35d006deae77da53 /lib/base.php | |
parent | 201a40a1a31825a47784ba08159a540832eec27e (diff) | |
download | nextcloud-server-bdd12df4a2907060f599f999077f0d8bcb3ed636.tar.gz nextcloud-server-bdd12df4a2907060f599f999077f0d8bcb3ed636.zip |
fix loading of OC::$REQUESTEDAPP if WTFE the app parameter is given but empty aka /?app
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index 4bd165862bb..d86a39966ee 100644 --- a/lib/base.php +++ b/lib/base.php @@ -427,7 +427,7 @@ class OC{ register_shutdown_function(array('OC_Helper','cleanTmp')); //parse the given parameters - self::$REQUESTEDAPP = (isset($_GET['app'])?str_replace(array('\0', '/', '\\', '..'), '', strip_tags($_GET['app'])):OC_Config::getValue('defaultapp', 'files')); + self::$REQUESTEDAPP = (isset($_GET['app']) && trim($_GET['app']) != '' && !is_null($_GET['app'])?str_replace(array('\0', '/', '\\', '..'), '', strip_tags($_GET['app'])):OC_Config::getValue('defaultapp', 'files')); if(substr_count(self::$REQUESTEDAPP, '?') != 0){ $app = substr(self::$REQUESTEDAPP, 0, strpos(self::$REQUESTEDAPP, '?')); $param = substr(self::$REQUESTEDAPP, strpos(self::$REQUESTEDAPP, '?') + 1); |