Ticket #591 (fixed bug)
Ignore BBCodes in user input in search.php
- Created: 2012-01-12 13:40:39
- Reported by: yoorick
- Assigned to: daris
- Milestone: 1.4.9
- Component: search
- Priority: normal
Before this commit all known bbcodes were removed from user input before searching.
Now split_words() only removes "[", "]" and "/" from a bbcode and, if bbcode's name is longer than PUN_SEARCH_MIN_WORD characters, the script looks for it together with other words in user's request.
In other words,
if a user asked the search script to look for a string like that:
[quote] something [/quote]
it was treated as just
something
Now it is treated as
quote and something
A link to my post on this issue.
History
daris 2012-01-23 12:18:39

Yes, it's fixed (testing locally gives result for only "something")
I reverted 2 commits that introduced this issue and then added again changes needed for #510 (without changing search behavior this time )