diff options
-rwxr-xr-x[-rw-r--r--] | application/Utils.php | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | tests/UtilsTest.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/application/Utils.php b/application/Utils.php index fa18f158..cb03f11c 100644..100755 --- a/application/Utils.php +++ b/application/Utils.php | |||
@@ -156,7 +156,7 @@ function is_session_id_valid($sessionId) | |||
156 | return false; | 156 | return false; |
157 | } | 157 | } |
158 | 158 | ||
159 | if (!preg_match('/^[a-z0-9]{2,32}$/', $sessionId)) { | 159 | if (!preg_match('/^[a-z0-9]{2,32}$/i', $sessionId)) { |
160 | return false; | 160 | return false; |
161 | } | 161 | } |
162 | 162 | ||
diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php index e39ce6be..5175dde0 100644..100755 --- a/tests/UtilsTest.php +++ b/tests/UtilsTest.php | |||
@@ -156,7 +156,7 @@ class UtilsTest extends PHPUnit_Framework_TestCase | |||
156 | */ | 156 | */ |
157 | public function testIsSessionIdValid() | 157 | public function testIsSessionIdValid() |
158 | { | 158 | { |
159 | $this->assertTrue(is_session_id_valid('123456789012345678901234567890az')); | 159 | $this->assertTrue(is_session_id_valid('azertyuiop123456789AZERTYUIOP1aA')); |
160 | } | 160 | } |
161 | 161 | ||
162 | /** | 162 | /** |