• 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.

Item6755: Displayed search string shows expanded TWiki variables and text formatting

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal Closed   patch 5.1.0, 5.0.2

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

Hello, I noticed today that if you search for the variable COMMENT (with % signs around it) in the search bar, it then brings up a comment box and you can then leave a comment box on the search page. I don't know if this is for all TWiki pages, because I didn't want to leave a random comment on the main website, but it worked for another TWiki based page.

-- TWiki:Main/AndreaHaines - 2011-06-16

Confirmed. The searched-for string is displayed on the WebSearch page as is. Other variables are affected as well, try %CALC{$UPPER(Hello World)}%

Fix: The displayed search string needs to be entity escaped to prevent %VARIABLES% from getting expanded.

-- TWiki:Main.PeterThoeny - 2011-06-16

This is now fixed in SVN trunk and 5.0 branch. Thanks for reporting, Andrea!

BTW, I also put in a fix to escape TML; for example, searching for _italic_ text was shown rendered as italic.

-- TWiki:Main.PeterThoeny - 2011-06-16

ItemTemplate
Summary Displayed search string shows expanded TWiki variables and text formatting
ReportedBy TWiki:Main.AndreaHaines
Codebase ~twiki4, 5.0.2
SVN Range TWiki-5.1.0-trunk, Mon, 13 Jun 2011, build 21497
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:21513 TWikirev:21514
TargetRelease patch
ReleasedIn 5.1.0, 5.0.2
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r8 - 2011-08-22 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback