The attached patch adds an 'e' modifier to the regular expression so that the replacement can be evaluated as PHP code. The patch also includes the last parameter for the hook_filter and changes a double-quote to a single quote in the filter operations.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 580576-evaluate-replacement-plus-placeholders.patch.txt | 1.42 KB | sillygwailo |
| #1 | 580576-evaluate-replacement.patch | 1.06 KB | sillygwailo |
Comments
Comment #1
sillygwailoComment #2
fgmNeeds to be converted to the "new" format no longer depending on invalid UTF8 sequences.
See #267484: Incorrect filter documentation for details.
Comment #3
sillygwailoComment #4
fgmIt probably means something like this:
Or maybe a simpler form in just one step, without prepare. The process callback seems to be unavoidable, though.
Comment #5
sillygwailoAttaching a patch. Includes modification of the comments to reflect current practice.
Comment #6
sillygwailoComment #7
fgmLooks good to me. I've included it in the dev. version (off-CVS for now).
Comment #8
fgmIncluded in today's release, with a zillion other changes.