where possible strip zid parameter from links that get pasted into posts so that they will get a correct zid when rendered
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user