diff options
author | Andreas Gohr <andi@splitbrain.org> | 2014-05-16 08:35:38 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2014-05-16 08:35:38 +0200 |
commit | 0712fefaefb6c7857ccc3455db2d8d269fb3ed16 (patch) | |
tree | 06de837dd9ceed95c078b6280fa05898e61f84fd /inc/common.php | |
parent | 272e9decc1b5a964c3303ffe8b5d52e9e08fde68 (diff) | |
download | rpg-0712fefaefb6c7857ccc3455db2d8d269fb3ed16.tar.gz rpg-0712fefaefb6c7857ccc3455db2d8d269fb3ed16.tar.bz2 |
don't unlock based on empty session
Diffstat (limited to 'inc/common.php')
-rw-r--r-- | inc/common.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php index 9fbebde94..c960c8739 100644 --- a/inc/common.php +++ b/inc/common.php @@ -796,7 +796,7 @@ function checklock($id) { //my own lock @list($ip, $session) = explode("\n", io_readFile($lock)); - if($ip == $INPUT->server->str('REMOTE_USER') || $ip == clientIP() || $session == session_id()) { + if($ip == $INPUT->server->str('REMOTE_USER') || $ip == clientIP() || (session_id() && $session == session_id())) { return false; } |