Bug #16

dkAntispamPlugin: Escape custom words for preg_match

Added by Romain Dorgueil 11 months ago.

Status:Assigned Start:09/18/2009
Priority:Urgent Due date:
Assigned to:Romain Dorgueil % Done:

0%

Category:- Spent time: -
Target version:- Estimated time:1.00 hour

Description

imported from symfony ticket #2877

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);

Also available in: Atom PDF