mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 11:28:55 +00:00
Merge pull request #1763 from bantu/ticket/11901
[ticket/11901] Pass empty string as relative_url for non-local magic URL...
This commit is contained in:
commit
b59131f558
1 changed files with 2 additions and 1 deletions
|
@ -773,7 +773,8 @@ function make_clickable($text, $server_url = false, $class = 'postlink')
|
||||||
{
|
{
|
||||||
$text = preg_replace_callback($magic_args[0], function($matches) use ($magic_args)
|
$text = preg_replace_callback($magic_args[0], function($matches) use ($magic_args)
|
||||||
{
|
{
|
||||||
return make_clickable_callback($magic_args[1], $matches[1], $matches[2], $matches[3], $magic_args[2]);
|
$relative_url = isset($matches[3]) ? $matches[3] : '';
|
||||||
|
return make_clickable_callback($magic_args[1], $matches[1], $matches[2], $relative_url, $magic_args[2]);
|
||||||
}, $text);
|
}, $text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue