New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists

Item13369: Wysiwyg converts entities to unicode in HTML2TML, and corrupts MAKETEXT strings.

Priority: Urgent
Current State: Closed
Released In: 1.2.0
Target Release: minor
Applies To: Extension
Component: WysiwygPlugin
Branches: master
Reported By: GeorgeClark
Waiting For:
Last Change By: CrawfordCurrie

The HTML2TML is corrupting entities. Discovered when editing DefaultPreferences

The test text is:

Test copyright © and —   mdash

%MAKETEXT{"Test copyright &© and &— inside maketext"}%

When the topic is edited, the copyright and mdash entities outside of the maketext are converted to unicode entities. But inside the MAKETEXT macros, they are incorrectly converted.


%MAKETEXT{"Test copyright &© and &— inside maketext"}%

and with CGI 4.14 and Foswiki configured for utf-8:

%MAKETEXT{"Test copyright &© and &— mdash "}%

-- GeorgeClark - 11 Apr 2015

Should be back the way it was.

-- CrawfordCurrie - 20 Apr 2015

ItemTemplate edit

Summary Wysiwyg converts entities to unicode in HTML2TML, and corrupts MAKETEXT strings.
ReportedBy GeorgeClark
Codebase 1.2.0 beta1, trunk
SVN Range
AppliesTo Extension
Component WysiwygPlugin
Priority Urgent
CurrentState Closed
Checkins distro:fa1d8a1fbb7b distro:7f5796f05673
TargetRelease minor
ReleasedIn 1.2.0
CheckinsOnBranches master
masterCheckins distro:fa1d8a1fbb7b distro:7f5796f05673
Topic revision: r2 - 20 Apr 2015, CrawfordCurrie - This page was cached on 21 Mar 2018 - 14:25.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License