Closed (fixed)
Project:
Search API
Version:
7.x-1.x-dev
Component:
Plugins
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Dec 2013 at 11:03 UTC
Updated:
7 Jan 2014 at 17:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
idebr commentedAttached patch preg_quotes the search keys before the keys are inserted into the regular expression
Comment #2
idebr commentedComment #3
idebr commentedComment #4
drunken monkeyAh, you're right! Thanks for spotting this and providing a fix! Don't know how that slipped past me, with regular expressions I'm normally extra-careful …
Anyways, I think the attached form of the patch is more readable, the
foreachloop can easily be replaced by aarray_map()call.Comment #5
drunken monkeyComment #6
idebr commentedYes, that is definitely better than #1. Simple and elegant, I like it!
Comment #7
drunken monkeyExcellent, good to hear!
Committed.
Thanks again for your contribution!