aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/bookmark/LinkUtils.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-05-12 12:44:48 +0200
committerArthurHoaro <arthur@hoa.ro>2020-07-23 21:19:21 +0200
commit03340c18ead651ef9e11f883745695f2edafbae3 (patch)
tree619822bfb909f68f78f4a266a89e7249644b9d4c /application/bookmark/LinkUtils.php
parent8e47af2b3620c920116ec056173277c039163ec1 (diff)
downloadShaarli-03340c18ead651ef9e11f883745695f2edafbae3.tar.gz
Shaarli-03340c18ead651ef9e11f883745695f2edafbae3.tar.zst
Shaarli-03340c18ead651ef9e11f883745695f2edafbae3.zip
Slim router: handle add tag route
Diffstat (limited to 'application/bookmark/LinkUtils.php')
-rw-r--r--application/bookmark/LinkUtils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/bookmark/LinkUtils.php b/application/bookmark/LinkUtils.php
index 88379430..98d9038a 100644
--- a/application/bookmark/LinkUtils.php
+++ b/application/bookmark/LinkUtils.php
@@ -220,7 +220,7 @@ function hashtag_autolink($description, $indexUrl = '')
220 * \p{Mn} - any non marking space (accents, umlauts, etc) 220 * \p{Mn} - any non marking space (accents, umlauts, etc)
221 */ 221 */
222 $regex = '/(^|\s)#([\p{Pc}\p{N}\p{L}\p{Mn}]+)/mui'; 222 $regex = '/(^|\s)#([\p{Pc}\p{N}\p{L}\p{Mn}]+)/mui';
223 $replacement = '$1<a href="'. $indexUrl .'?addtag=$2" title="Hashtag $2">#$2</a>'; 223 $replacement = '$1<a href="'. $indexUrl .'./add-tag/$2" title="Hashtag $2">#$2</a>';
224 return preg_replace($regex, $replacement, $description); 224 return preg_replace($regex, $replacement, $description);
225} 225}
226 226