diff options
author | Max Kostikov <max@kostikov.co> | 2019-07-16 18:11:47 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-07-16 18:11:47 +0200 |
commit | 821af482f070bfc671d2f5b6480a370dc86f212e (patch) | |
tree | f5016ee72c8a21e773346aafb6ffce9d1da8cffd /include/zid.php | |
parent | b2d1fadf66fd5fc0d4f5774e8549fd81fbcf5241 (diff) | |
download | volse-hubzilla-821af482f070bfc671d2f5b6480a370dc86f212e.tar.gz volse-hubzilla-821af482f070bfc671d2f5b6480a370dc86f212e.tar.bz2 volse-hubzilla-821af482f070bfc671d2f5b6480a370dc86f212e.zip |
Exclude trailing punctuations from URL
Diffstat (limited to 'include/zid.php')
-rw-r--r-- | include/zid.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/zid.php b/include/zid.php index 27ef0cefa..fc8a31094 100644 --- a/include/zid.php +++ b/include/zid.php @@ -216,9 +216,9 @@ function red_zrl_callback($matches) { if($matches[1] === '#^') $matches[1] = ''; if($zrl) - return $matches[1] . '#^[zrl=' . $matches[2] . ']' . $matches[2] . '[/zrl]'; + return $matches[1] . '#^[zrl=' . $matches[2] . ']' . $matches[2] . '[/zrl]' . $matches[3]; - return $matches[1] . '#^[url=' . $matches[2] . ']' . $matches[2] . '[/url]'; + return $matches[1] . '#^[url=' . $matches[2] . ']' . $matches[2] . '[/url]' . $matches[3]; } /** |