Browse Source

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

remotes/origin/stable4
Michael Gapczynski 14 years ago
parent
commit
a332c39472
  1. 2
      lib/json.php

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

Loading…
Cancel
Save