summaryrefslogtreecommitdiffstats
path: root/lib/json.php
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2012-05-13 15:26:05 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2012-05-13 15:26:30 -0400
commita332c3947217b15b15c7855e41daf95c74576088 (patch)
tree6d37cf26cdcf6ac361d9ce2e0267fe45dd591679 /lib/json.php
parent6b6477a90a2fc9b8129ff42f1023b2252e65b5a5 (diff)
downloadnextcloud-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.php2
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();
}