diff --git a/lib/base.php b/lib/base.php
index 97b363b1fa92a83d090a94b6ade8dca61fd48b58..0802e040c0fa6ae7243818e92ad13eb7849711a6 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -406,7 +406,9 @@ class OC{
 		if(substr_count(self::$REQUESTEDFILE, '?') != 0){
 			$file = substr(self::$REQUESTEDFILE, 0, strpos(self::$REQUESTEDFILE, '?'));
 			$param = substr(self::$REQUESTEDFILE, strpos(self::$REQUESTEDFILE, '?') + 1);
-			parse_str($param, $_GET);
+			echo $param;
+			parse_str($param, $get);
+			$_GET = array_merge($_GET, $get);
 			self::$REQUESTEDFILE = $file;
 			$_GET['getfile'] = $file;
 		}