As described in this KB article I change :
- Code: Select all
// Remove the uid from tags that have not been transformed into HTML if ($this->bbcode_uid) { $message = str_replace(':' . $this->bbcode_uid, '', $message);
to
- Code: Select all
// Remove the uid from tags that have not been transformed into HTML if ($this->bbcode_uid) { $message = str_replace(':' . $this->bbcode_uid, '', $message); $message = censor_text($message);
But in order to work for censoring URLs in any case I have to make a second edit and search at line ~120 for:
- Code: Select all
// Remove the uid from tags that have not been transformed into HTML $message = str_replace(':' . $this->bbcode_uid, '', $message); }
and change it to
- Code: Select all
// Remove the uid from tags that have not been transformed into HTML $message = str_replace(':' . $this->bbcode_uid, '', $message); $message = censor_text($message); }
Is that OK? By the way I'm using 3.0.9, but checked the bbcode.php of v3.0.7-PL1 and those changes would be the same.
Thanks!