WebSearch and
WebSearchAdvanced have an embedded SEARCH where the search parameter is supplied by a URLPARAM. If you search for a literal string such as
"plugin api"
, SEARCH looks like this:
%SEARCH{ ""plugin api"" ... }%
(after expanding from
%SEARCH{ "%URLPARAM{search}%" ... }%
)
According to the parameter eval spec, embedded quotes need to be escaped with backslashes. This is what SEARCH should get from URLPARAM:
%SEARCH{ "\"plugin api\"" ... }%
This can be achieved with a new
encode="quotes"
parameter:
%URLPARAM{ "search" encode="quotes" }%
. For consitency,
%ENCODE{ "text" type="quotes" }%
should be supported as well.
This bug was discovered while debugging
Item3261.
--
PTh
Fixed and documented, svn 12435.
--
PTh