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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user