aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2008-11-22 21:18:35 +0000
committerNils Adermann <naderman@naderman.de>2008-11-22 21:18:35 +0000
commitdcea9f082a3392f09f2753f1cba761f36a6b74ec (patch)
treee864bf99a4288307648dffb895dac1729a90bd03
parente02c3e3b4aeb0a0588cacb4d96ef3d8c4ba0ef8a (diff)
downloadforums-dcea9f082a3392f09f2753f1cba761f36a6b74ec.tar
forums-dcea9f082a3392f09f2753f1cba761f36a6b74ec.tar.gz
forums-dcea9f082a3392f09f2753f1cba761f36a6b74ec.tar.bz2
forums-dcea9f082a3392f09f2753f1cba761f36a6b74ec.tar.xz
forums-dcea9f082a3392f09f2753f1cba761f36a6b74ec.zip
- 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
-rw-r--r--phpBB/docs/CHANGELOG.html1
-rw-r--r--phpBB/includes/functions_content.php10
2 files changed, 10 insertions, 1 deletions
diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html
index 6b389b9f17..11f1dc319a 100644
--- a/phpBB/docs/CHANGELOG.html
+++ b/phpBB/docs/CHANGELOG.html
@@ -93,6 +93,7 @@
<li>[Fix] Do not display COPPA group in memberlist find member dialog if COPPA disabled (Bug #37175)</li>
<li>[Fix] Do not try to send jabber notifications if no jid entered (Bug #36775)</li>
<li>[Fix] Only display special ranks to guests; no longer display normal ranks for guests (Bug #36735)</li>
+ <li>[Fix] Properly treat punctuation marks after local urls (Bug #37055)</li>
</ul>
<a name="v302"></a><h3>1.ii. Changes since 3.0.2</h3>
diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php
index 627e6a71cd..caa1b470d6 100644
--- a/phpBB/includes/functions_content.php
+++ b/phpBB/includes/functions_content.php
@@ -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;