aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();
}