Page 1 of 1

modsecurity and serendipity

Posted: Tue Apr 01, 2014 7:33 am
by ThierryIT
Hi,

My wife is at work triing to have access to her blog ...
She first had a for forbbiden 404 (logs from Splunk) :

PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/serendipity/plugins/serendipity_event_nl2br/serendipity_event_nl2br.php on line 156

I have changed "preg_replace" by "preg_replace_callback" and she get an forbiddent 403


PHP Warning: preg_replace_callback(): Requires argument 2, '$_buf[$1]', to be a valid callback in /var/www/serendipity/plugins/serendipity_event_nl2br/serendipity_event_nl2br.php on line 156

I forget to tell you that I do not have any skills about php :)

Thx

Re: modsecurity and serendipity

Posted: Tue Apr 01, 2014 9:04 am
by Timbalu
Version 2.19 with a current Serendipity release should already have that solved. It seems you need to upgrade.

Re: modsecurity and serendipity

Posted: Tue Apr 01, 2014 9:32 am
by ThierryIT
V 2.19 of what ?

Re: modsecurity and serendipity

Posted: Tue Apr 01, 2014 9:48 am
by Timbalu
serendipity_event_nl2br