diff --git a/pheditor.php b/pheditor.php
index bf42dd0..61c6a21 100755
--- a/pheditor.php
+++ b/pheditor.php
@@ -175,9 +175,11 @@
}
if (isset($_GET['logout'])) {
- unset($_SESSION['pheditor_admin']);
+ if ($_GET['logout'] == $_SESSION['pheditor_token']) {
+ unset($_SESSION['pheditor_admin']);
- session_destroy();
+ session_destroy();
+ }
redirect();
}
@@ -1670,7 +1672,7 @@ function getCookie(name) {
-
+