note 18159 deleted from function.preg-replace by sniper

From: Date: Tue, 30 Sep 2003 12:29:33 +0000
Subject: note 18159 deleted from function.preg-replace by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57468@lists.php.net to get a copy of this message
Note Submitter: kerry@lothrop.de ---- Note the there is an implicit addslashes done to all matches when using the e-modifier for security reasons. If you're working with strings that may have single or double quotes, be sure to use an explicit stripslashes on your matches. Example: $string = preg_replace('/<([^>]+)>/e', 'processing_function(stripslashes("\1"))', $string);

« previous php.notes (#57468) next »