Merge pull request #336 from ArthurHoaro/login-hotfix
Allow uppercase letters in PHP sessionid format
This commit is contained in:
commit
67ee1435f8
2 changed files with 2 additions and 2 deletions
2
application/Utils.php
Normal file → Executable file
2
application/Utils.php
Normal file → Executable file
|
@ -156,7 +156,7 @@ function is_session_id_valid($sessionId)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!preg_match('/^[a-z0-9]{2,32}$/', $sessionId)) {
|
||||
if (!preg_match('/^[a-z0-9]{2,32}$/i', $sessionId)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
2
tests/UtilsTest.php
Normal file → Executable file
2
tests/UtilsTest.php
Normal file → Executable file
|
@ -156,7 +156,7 @@ public function testCheckSupportedPHPVersion52()
|
|||
*/
|
||||
public function testIsSessionIdValid()
|
||||
{
|
||||
$this->assertTrue(is_session_id_valid('123456789012345678901234567890az'));
|
||||
$this->assertTrue(is_session_id_valid('azertyuiop123456789AZERTYUIOP1aA'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue