diff options
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/backend.php b/backend.php index 8e6ff6ced..87b0945b1 100644 --- a/backend.php +++ b/backend.php @@ -65,7 +65,7 @@ // TODO remove and handle within Handlers - if (!($_SESSION["uid"] && validate_session($link))) { + /* if (!($_SESSION["uid"] && validate_session($link))) { if ($op == 'pref-feeds' && $method == 'add') { header("Content-Type: text/html"); login_sequence($link); @@ -75,7 +75,7 @@ print json_encode(array("error" => array("code" => 6))); } return; - } + } */ $purge_intervals = array( 0 => __("Use default"), @@ -143,6 +143,10 @@ } $handler->after(); return; + } else { + header("Content-Type: text/plain"); + print json_encode(array("error" => array("code" => 6))); + return; } } else { header("Content-Type: text/plain"); |