1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 00:07:44 +02:00

[ticket/217] Silence errors in tests, not code.

Use a mock user object for testing bbcode.

PHPBB3-217
This commit is contained in:
Oleg Pudeyev
2011-06-05 13:23:55 -04:00
committed by rxu
parent d44b6ba5ca
commit 2d1e426ba7
3 changed files with 25 additions and 1 deletions

View File

@@ -975,7 +975,7 @@ class bbcode_firstpass extends bbcode
}
// Is this a link to somewhere inside this board? If so then remove the session id from the url
if (strpos($url, @generate_board_url()) !== false && strpos($url, 'sid=') !== false)
if (strpos($url, generate_board_url()) !== false && strpos($url, 'sid=') !== false)
{
$url = preg_replace('/(&|\?)sid=[0-9a-f]{32}&/', '\1', $url);
$url = preg_replace('/(&|\?)sid=[0-9a-f]{32}$/', '', $url);