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

Item6750: Encode also space in encode="html" to preserve TML in HTML input fields

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Enhancement Closed   minor 5.1.0

Edit Form Data

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

Detail

Small change: When encode="html", encode also space besides newline and linefeed.

Reason: When feeding content into an HTML input field, it might get interpreted by TWiki as TML, such as *bold*, _italic_, or a URL like http://twiki.org. When space is encoded as  , it effectively escapes the TML, e.g. text fed into an HTML input field is preserved as is.

This takes effect in:

  • %ENCODE{ "..." type="html" }%
  • %FORMFIELD{ "..." encode="html" }%
  • %QUERYPARAMS{ "..." encode="html" }%
  • %URLPARAM{ "..." encode="html" }%

This change was needed to preserve form fields in the improved user profile pages, Item6733, TWiki:Codev.MoreVisualUserHomepages.

-- TWiki:Main/PeterThoeny - 2011-06-14

This is now in SVN trunk (and 5.0 branch, although a 5.0.2 release is not expected).

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

ItemTemplate
Summary Encode also space in encode="html" to preserve TML in HTML input fields
ReportedBy TWiki:Main.PeterThoeny
Codebase ~twiki4
SVN Range TWiki-5.1.0-trunk, Sun, 22 May 2011, build 21317
AppliesTo Engine
Component

Priority Enhancement
CurrentState Closed
WaitingFor

Checkins TWikirev:21497 TWikirev:21498 TWikirev:21499 TWikirev:21500 TWikirev:21501 TWikirev:21502
TargetRelease minor
ReleasedIn 5.1.0
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r10 - 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