diff options
author | friendica <info@friendica.com> | 2014-02-04 19:39:56 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-02-04 19:39:56 -0800 |
commit | 8a11c2941395bdd325ac076bd22ad011fe41f3c7 (patch) | |
tree | a316119717113bea8af19c588637ca785bdc4f7d /mod/item.php | |
parent | 9f439c3248c0464298e0b486a85ad74ec2df8270 (diff) | |
download | volse-hubzilla-8a11c2941395bdd325ac076bd22ad011fe41f3c7.tar.gz volse-hubzilla-8a11c2941395bdd325ac076bd22ad011fe41f3c7.tar.bz2 volse-hubzilla-8a11c2941395bdd325ac076bd22ad011fe41f3c7.zip |
make links in comments bookmark-able
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/item.php b/mod/item.php index 68bb75897..c8c0e3762 100644 --- a/mod/item.php +++ b/mod/item.php @@ -896,9 +896,9 @@ function handle_tag($a, &$body, &$access_tag, &$str_tags, $profile_uid, $tag) { //is it a hash tag? if(strpos($tag,'#') === 0) { if(strpos($tag,'#^[') === 0) { - if(preg_match('/#\^\[(url|zrl)=(.*?)\](.*?)\[\/(url|zrl)\]/',$tag,$match)) { + if(preg_match('/#\^\[(url|zrl)(.*?)\](.*?)\[\/(url|zrl)\]/',$tag,$match)) { $basetag = $match[3]; - $url = $match[2]; + $url = ((substr($match[2],0,1) === '=') ? substr($match[2],1) : $match[3]); $replaced = true; } |