From a332c3947217b15b15c7855e41daf95c74576088 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Sun, 13 May 2012 15:26:05 -0400 Subject: [PATCH] Check if path_info is empty as well, fixes bug oc-632. Thanks to die3lustigen2. --- lib/json.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.39.5