summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/backend.php b/backend.php
index 9eb3989e4..6ee0e081f 100644
--- a/backend.php
+++ b/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"]);
}