Bug #17856: quotemeta() does not escape all correct meta characters

From: Date: Thu, 20 Jun 2002 02:05:37 +0000
Subject: Bug #17856: quotemeta() does not escape all correct meta characters
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11478@lists.php.net to get a copy of this message
From: robbat2@orbis-terrarum.net Operating system: Linux, Apache 2.0.36 PHP version: 4.1.2 PHP Bug Type: Regexps related Bug description: quotemeta() does not escape all correct meta characters quotemeta() only escapes: . \\ + * ? [ ^ ] ( $ ) To properly escape traditional characters for regexps, it is also nessecary to escape '-' and '|', as the are the range and OR operators respectively. -- Edit bug report at http://bugs.php.net/?id=17856&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17856&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17856&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17856&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17856&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17856&r=support Expected behavior: http://bugs.php.net/fix.php?id=17856&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17856&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17856&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17856&r=globals

« previous php.bugs (#11478) next »