Development

#2877 (dkAntispamPlugin: Escape custom words for preg_match)

You must first sign up to be able to contribute.

Ticket #2877 (new defect)

Opened 10 months ago

Last modified 9 months ago

dkAntispamPlugin: Escape custom words for preg_match

Reported by: Markus.Staab Assigned to: fabien
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.