Development

#2877 (dkAntispamPlugin: Escape custom words for preg_match)

You must first sign up to be able to contribute.

Ticket #2877 (closed defect: duplicate)

Opened 2 years ago

Last modified 6 months ago

dkAntispamPlugin: Escape custom words for preg_match

Reported by: Markus.Staab Assigned to: hartym
Priority: major Milestone:
Component: plugins Version:
Keywords: plugin, dkAntispamPlugin Cc:
Qualification: Unreviewed

Description

the words which are written out of the config files should be escaped for the regex

instead of

preg_match_all('/'.$word.'/', $text, $result);

use

preg_match_all('/'. preg_quote($word,'/') .'/', $text, $result);

Change History

02/23/08 03:55:06 changed by Carl.Vondrick

  • component changed from other to plugins.

09/15/09 16:23:51 changed by FabianLange

  • owner changed from fabien to hartym.

09/18/09 07:06:12 changed by hartym

  • status changed from new to closed.
  • resolution set to duplicate.

To help cleaning TRAC, ticket has been moved to my own tracker.

http://trackeet.net/issues/show/16

More, the dkAntispamPlugin is to be obsolete, sfEasyAntispamPlugin will replace it.

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.