Skip to content
Browse files

Merge pull request #77 from drench/master

Allow uppercase letters, as well as commas and minus signs in session IDs
  • Loading branch information...
2 parents 3b37d8c + d297112 commit a7228f0b69f138ca14fa4584efbb3af234bf1db5 @dimkalinux dimkalinux committed Apr 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 include/functions.php
View
2 include/functions.php
@@ -53,7 +53,7 @@ function forum_session_start() {
else if (isset($_GET['PHPSESSID']))
$forum_session_id = $_GET['PHPSESSID'];
- if (empty($forum_session_id) || !preg_match('/^[a-z0-9]{16,32}$/', $forum_session_id))
+ if (empty($forum_session_id) || !preg_match('/^[a-z0-9\-,]{16,32}$/i', $forum_session_id))
{
// Create new session id
$forum_session_id = random_key(32, FALSE, TRUE);

0 comments on commit a7228f0

Please sign in to comment.
Something went wrong with that request. Please try again.