When using PHP 5.5, the following message appears in the logs:

Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in _bbcode_filter_process() (line 238 of /.../sites/all/modules/contrib/bbcode/bbcode-filter.inc).

Comments

naheemsays’s picture

I have replaced this module with xbbcode due to this issue.

I am not sure if it is also exploitable hre but a quick google suggests that this tag was deprecated due to security concerns.

damienmckenna’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Issue tags: +PHP 5.5

I started seeing this error when I upgraded my local PHP runtime to 5.5.x.

nevergone’s picture

Priority: Minor » Normal
Status: Active » Needs review
StatusFileSize
new5.36 KB

Please review this patch. Tested: PHP 5.5.9 and 5.3.10

nevergone’s picture

Previous patch is mistreat [size] code. Tested: PHP 5.5.9 and 5.3.10

Niklas Fiekas’s picture

Thank you, nevergone! I can confirm that the patch fixes the problem on my sites.

nevergone’s picture

If the patch is works well, please change the issue status: RTBC :)

joelstein’s picture

Status: Needs review » Reviewed & tested by the community

Patch applies cleanly and fixes the errors. Thanks!

madri2’s picture

when will this be merged ?

havanablackcu1’s picture

Like "nbz" I've replaced by Extensible BBcode(-Extensible BBCode filter, allowing custom tags). Then enabled Basic Tags module (A package of the standard tags for XBBCode) and Lists module (Provides BBCode lists with more options than the basic tags package.) All working good)))

naudefj’s picture

naudefj’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.