diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-05-13 15:26:05 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-05-13 15:26:30 -0400 |
commit | a332c3947217b15b15c7855e41daf95c74576088 (patch) | |
tree | 6d37cf26cdcf6ac361d9ce2e0267fe45dd591679 /lib/json.php | |
parent | 6b6477a90a2fc9b8129ff42f1023b2252e65b5a5 (diff) | |
download | nextcloud-server-a332c3947217b15b15c7855e41daf95c74576088.tar.gz nextcloud-server-a332c3947217b15b15c7855e41daf95c74576088.zip |
Check if path_info is empty as well, fixes bug oc-632. Thanks to die3lustigen2.
Diffstat (limited to 'lib/json.php')
-rw-r--r-- | lib/json.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/json.php b/lib/json.php index 6782bad8bb7..f3bbe9ac899 100644 --- a/lib/json.php +++ b/lib/json.php @@ -73,7 +73,7 @@ class OC_JSON{ * Encode and print $data in json format */ public static function encodedPrint($data,$setContentType=true){ - if(!isset($_SERVER['PATH_INFO'])) { + if(!isset($_SERVER['PATH_INFO']) || $_SERVER['PATH_INFO'] == '') { if($setContentType){ self::setContentTypeHeader(); } |