Andy Baugh 6 年 前
コミット
b689f9e685
2 ファイル変更2 行追加2 行削除
  1. 1 1
      lib/tCMS/Auth.inc
  2. 1 1
      templates/default/admin/logout.inc

+ 1 - 1
lib/tCMS/Auth.inc

@@ -25,7 +25,7 @@
                 || ( $session_status !== PHP_SESSION_ACTIVE || $session_status !== 2 )
                 || ( isset( $_SESSION['LAST_ACTIVITY'] ) && ( time() - $_SESSION['LAST_ACTIVITY'] > 3600 ) )
                 || $_SESSION['REMOTE_ADDR'] !== $_SERVER['REMOTE_ADDR'] ) {
-                $to = ( $_GET['app'] ) ? "&to=" . $_GET['app'] : "";
+                $to = ( !empty($_GET['app']) ) ? "&to=" . $_GET['app'] : "";
                 auth::invalidate_auth( $redirect, $to );
             }
             $_SESSION['LAST_ACTIVITY'] = time();

+ 1 - 1
templates/default/admin/logout.inc

@@ -1,5 +1,5 @@
 <?php
-    require_once "tCMS/auth.inc";
+    require_once "tCMS/Auth.inc";
     $auth = new Auth;
     $auth->invalidate_auth();
     die();