From 1f05faf25c41d940ce1210225e2321b7ccaf0365 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Tue, 9 Jun 2009 15:52:03 +0000 Subject: [PATCH] Fix bug #46215 - Adjust viewonline filename regular expression to be less strict. Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9566 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/docs/CHANGELOG.html | 1 + phpBB/viewonline.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index 1d3abd62bc..d03e186664 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -96,6 +96,7 @@
  • [Fix] Various XHTML mistakes in prosilver and subsilver2. (Bugs #38555, #45505 - Patch by Raimon, #45785, #45865)
  • [Fix] Move post bump information markup to the template. (Bug #34295 - Patch by bantu)
  • [Fix] Show error in the ACP when template folder is not readable. (Bug #45705 - Patch by bantu)
  • +
  • [Fix] Adjust viewonline filename regular expression to be less strict. (Bug #46215 - Patch by bantu)
  • [Change] Change the data format of the default file ACM to be more secure from tampering and have better performance.
  • [Change] Add index on log_time to the log table to prevent slowdown on boards with many log entries. (Bug #44665 - Patch by bantu)
  • [Feature] Backported 3.2 captcha plugins.
  • diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php index c42eeff57a..5eb2894441 100644 --- a/phpBB/viewonline.php +++ b/phpBB/viewonline.php @@ -187,7 +187,7 @@ while ($row = $db->sql_fetchrow($result)) continue; } - preg_match('#^([a-z/_]+)#i', $row['session_page'], $on_page); + preg_match('#^([a-z0-9/_-]+)#i', $row['session_page'], $on_page); if (!sizeof($on_page)) { $on_page[1] = '';