Check if path_info is empty as well, fixes bug oc-632. Thanks to die3lustigen2.
This commit is contained in:
parent
6b6477a90a
commit
a332c39472
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue