summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHorus32014-03-18 00:43:33 +0100
committerHorus32014-03-18 00:43:33 +0100
commit175cbe43b0ab9fdad7b88b1c213f3975a26b603c (patch)
treea584be18706109fc60364a570e40d31fdb4f5e19
parent60bb005eba26c066bdebcea80c40dbfe727a801c (diff)
downloadfiles.iamfabulous.de-175cbe43b0ab9fdad7b88b1c213f3975a26b603c.tar.gz
setup.php destroys a potential initialized session
-rwxr-xr-xwww/setup.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/www/setup.php b/www/setup.php
index e7e9bb4..e2d24c5 100755
--- a/www/setup.php
+++ b/www/setup.php
@@ -21,6 +21,10 @@ foreach ($_GET as $name => $value) {
}
if($bool){
+ if(isset($_SESSION["login"])){
+ session_start();
+ session_destroy();
+ }
if($db->exec("
BEGIN TRANSACTION;
PRAGMA writable_schema = 1;