Skip to content

Commit

Permalink
Merge pull request #336 from ArthurHoaro/login-hotfix
Browse files Browse the repository at this point in the history
Allow uppercase letters in PHP sessionid format
  • Loading branch information
ArthurHoaro committed Sep 2, 2015
2 parents 53cc2b9 + 4d30975 commit 67ee143
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/Utils.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/UtilsTest.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public function testCheckSupportedPHPVersion52()
*/
public function testIsSessionIdValid()
{
$this->assertTrue(is_session_id_valid('123456789012345678901234567890az'));
$this->assertTrue(is_session_id_valid('azertyuiop123456789AZERTYUIOP1aA'));
}

/**
Expand Down

0 comments on commit 67ee143

Please sign in to comment.