diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-08-06 21:45:02 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-08-07 20:43:00 +0200 |
commit | 6d0390dccaa02af0c5144733bf9c3e254e77fa9a (patch) | |
tree | 63e9c7a9591d8530af1418d5259f50a13da533a1 /lib/base.php | |
parent | a9f894ce11d3075781953420d288cd54b51b0795 (diff) | |
download | nextcloud-server-6d0390dccaa02af0c5144733bf9c3e254e77fa9a.tar.gz nextcloud-server-6d0390dccaa02af0c5144733bf9c3e254e77fa9a.zip |
Fix rewriting GET parameters with ? in REQUESTEDAPP
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 888dc265d64..8f7544de1f6 100644 --- a/lib/base.php +++ b/lib/base.php @@ -373,7 +373,7 @@ class OC{ 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); + $param = substr($_GET['app'], strpos($_GET['app'], '?') + 1); parse_str($param, $get); $_GET = array_merge($_GET, $get); self::$REQUESTEDAPP = $app; |