mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
- Properly treat punctuation marks after local urls [Bug #37055]
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9084 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -565,6 +565,14 @@ function make_clickable_callback($type, $whitespace, $url, $relative_url, $class
|
||||
{
|
||||
$url = substr($url, 0, -1);
|
||||
}
|
||||
// appends last_char to orig_url to retrieve real original url
|
||||
$orig_url = substr($orig_url, 0, -1);
|
||||
break;
|
||||
|
||||
// set last_char to empty here, so the variable can be used later to
|
||||
// check whether a character was removed
|
||||
default:
|
||||
$last_char = '';
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -583,7 +591,7 @@ function make_clickable_callback($type, $whitespace, $url, $relative_url, $class
|
||||
// don't touch it and let MAGIC_URL_FULL take care of it.
|
||||
if (!$relative_url)
|
||||
{
|
||||
return $whitespace . $orig_url . '/'; // slash is taken away by relative url pattern
|
||||
return $whitespace . $orig_url . '/' . $last_char; // slash is taken away by relative url pattern
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user