Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit a7228f0b69f138ca14fa4584efbb3af234bf1db5 2 parents 3b37d8c + d297112
@dimkalinux dimkalinux authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.