Browse Source

Check if path_info is empty as well, fixes bug oc-632. Thanks to die3lustigen2.

tags/v4.0.0RC2
Michael Gapczynski 12 years ago
parent
commit
a332c39472
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/json.php

+ 1
- 1
lib/json.php View File

@@ -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();
}

Loading…
Cancel
Save