modsecurity and serendipity

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
ThierryIT
Regular
Posts: 5
Joined: Mon Mar 31, 2014 8:56 am

modsecurity and serendipity

Post by ThierryIT » Tue Apr 01, 2014 7:33 am

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

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: modsecurity and serendipity

Post by Timbalu » Tue Apr 01, 2014 9:04 am

Version 2.19 with a current Serendipity release should already have that solved. It seems you need to upgrade.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

ThierryIT
Regular
Posts: 5
Joined: Mon Mar 31, 2014 8:56 am

Re: modsecurity and serendipity

Post by ThierryIT » Tue Apr 01, 2014 9:32 am

V 2.19 of what ?

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: modsecurity and serendipity

Post by Timbalu » Tue Apr 01, 2014 9:48 am

serendipity_event_nl2br
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

Post Reply