Sphinx Search borks if search contains a /
Bug #794669 reported by
Chris St. Pierre
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DokuWiki Sphinx Search plugin |
New
|
Undecided
|
Unassigned |
Bug Description
If you enter a search string with a forward slash in it, Sphinx Search erroneously reports:
Could not connect to Sphinx search engine.
In the code, it doesn't appear to check what error it got, just if there was an error. In this case, the error is:
index dk_main: syntax error, unexpected '/' near '/b*) | (@(body,title) a/b)'.
My thought is that it would probably be best to just strip forward slashes (and any other illegal characters) from the query before searching. Whatever the course of action, claiming a connection error has occurred is certainly not the right thing.
To post a comment you must log in.
Hello, what version do you use?
I testing forward slash and it works fine.
Could you provide example of query?