aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-04-26 20:27:14 -0700
committerzotlabs <mike@macgirvin.com>2018-04-26 20:27:14 -0700
commit7b445a5b39b887135854ba1b9aa6d9867d584ae5 (patch)
tree69b14c3ca2d9e23552873e2495e6f8d50392ec06 /include/text.php
parentce13fef6aaf4a99fdecd9ff5374028e5ff117651 (diff)
downloadvolse-hubzilla-7b445a5b39b887135854ba1b9aa6d9867d584ae5.tar.gz
volse-hubzilla-7b445a5b39b887135854ba1b9aa6d9867d584ae5.tar.bz2
volse-hubzilla-7b445a5b39b887135854ba1b9aa6d9867d584ae5.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.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index ede62f582..24f8e1623 100644
--- a/include/text.php
+++ b/include/text.php
@@ -3307,6 +3307,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);
@@ -3336,7 +3337,6 @@ function cleanup_bbcode($body) {
$body = scale_external_images($body,false);
-
return $body;
}