diff options
author | zotlabs <mike@macgirvin.com> | 2018-04-26 20:27:14 -0700 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-04-27 09:58:17 +0200 |
commit | d0ba2cf6d469f2cbaef3749525eb19fcf36ed26d (patch) | |
tree | 9e66addfa68cb954c0c844de6ee1229a851ef4fc /include/text.php | |
parent | e33d8c288b86bf42b2471df4cb963395ed1664b9 (diff) | |
download | volse-hubzilla-d0ba2cf6d469f2cbaef3749525eb19fcf36ed26d.tar.gz volse-hubzilla-d0ba2cf6d469f2cbaef3749525eb19fcf36ed26d.tar.bz2 volse-hubzilla-d0ba2cf6d469f2cbaef3749525eb19fcf36ed26d.zip |
where possible strip zid parameter from links that get pasted into posts so that they will get a correct zid when rendered
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php index 55fc49560..af88c9f9c 100644 --- a/include/text.php +++ b/include/text.php @@ -3267,6 +3267,7 @@ function cleanup_bbcode($body) { * First protect any url inside certain bbcode tags so we don't double link it. */ + $body = preg_replace_callback('/\[code(.*?)\[\/(code)\]/ism','\red_escape_codeblock',$body); $body = preg_replace_callback('/\[url(.*?)\[\/(url)\]/ism','\red_escape_codeblock',$body); $body = preg_replace_callback('/\[zrl(.*?)\[\/(zrl)\]/ism','\red_escape_codeblock',$body); @@ -3296,7 +3297,6 @@ function cleanup_bbcode($body) { $body = scale_external_images($body,false); - return $body; } |