ソースを参照

Merge branch 'master' of https://github.com/unaio/una

AntonLV 4 年 前
親
コミット
0dfe8c8059
1 ファイル変更、2 行追加、2 行削除
  1. 2 2
      inc/classes/BxDolForm.php

+ 2 - 2
inc/classes/BxDolForm.php

@@ -1109,7 +1109,7 @@ class BxDolForm extends BxDol implements iBxDolReplaceable
         if (!($oKeys = BxDolKey::getInstance()))
             return false;
 
-        return $oKeys->getNewKey (false, (int)getParam('sys_security_form_token_lifetime'), $_SERVER['REMOTE_ADDR']);
+        return $oKeys->getNewKey (false, (int)getParam('sys_security_form_token_lifetime'), BxDolSession::getInstance()->getId());
     }
     
     public static function isCsrfTokenValid($s)
@@ -1121,7 +1121,7 @@ class BxDolForm extends BxDol implements iBxDolReplaceable
             return true;
 
         if ($oKeys->isKeyExists($s)) {
-            $bRet = $oKeys->isKeyExists($s, $_SERVER['REMOTE_ADDR']);
+            $bRet = $oKeys->isKeyExists($s, BxDolSession::getInstance()->getId());
             $oKeys->removeKey($s);
             return $bRet;
         }