• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

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

ItemTemplate
Summary Quotes in FormattedSearch not escaped
ReportedBy TWiki:Main.PeterThoeny
Codebase ~twiki4
SVN Range TWiki-4.1.0, Tue, 02 Jan 2007, build 12418
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins 12435
TargetRelease minor
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-01-16 - JasonHill
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback