mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
do not use session id in form key if not logged in
This commit is contained in:
parent
888d75953e
commit
6c0b544446
|
@ -473,10 +473,10 @@ function showtree() { /* {{{ */
|
|||
function createFormKey($formid='') { /* {{{ */
|
||||
global $settings, $session;
|
||||
|
||||
if($id = $session->getId()) {
|
||||
if($session && $id = $session->getId()) {
|
||||
return md5($id.$settings->_encryptionKey.$formid);
|
||||
} else {
|
||||
return false;
|
||||
return md5($settings->_encryptionKey.$formid);
|
||||
}
|
||||
} /* }}} */
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user