Browse Source

backend: add session validation check

remotes/origin/jsonfeed-test-branch
Andrew Dolgov 9 years ago
parent
commit
ccfa90803b
  1. 5
      backend.php

5
backend.php

@ -62,6 +62,11 @@
}
if ($_SESSION["uid"]) {
if (!validate_session($link)) {
header("Content-Type: text/json");
print json_encode(array("error" => array("code" => 6)));
return;
}
load_user_plugins($link, $_SESSION["uid"]);
}

Loading…
Cancel
Save