You are here: Foswiki>Tasks Web>Item12700 (05 Jul 2015, GeorgeClark)Edit Attach

Item12700: HTML2TML crashes if square brackets inserted into a link

Priority: Urgent
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Extension
Component: WysiwygPlugin
Branches: Release01x01 trunk
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
2013-12-17T21:33:57Z warning Unmatched [ in regex; marked by <-- HERE in m/\.[ <-- HERE [Tasks.BookmakerPlugin$/ at / line 1504.

Changing back to unconfirmed. I can't seem to recreate it on my local install.

I wanted to make an existing wikiword link to a different web visible, so I edited the topic ( Support/Question1389 ) and inserted a [ ] around the link to "Support.BookmakerPlugin" and "Extensions.BookmakerPlugin". The crash occurred on save.

I suspect the solution is to escape the regex with \Q \E.

-- GeorgeClark - 17 Dec 2013

Confirmed. And confirmed \Q \E fixes it.

-- GeorgeClark - 17 Dec 2013

ItemTemplate edit

Summary HTML2TML crashes if square brackets inserted into a link
ReportedBy GeorgeClark
Codebase 1.1.9, trunk
SVN Range
AppliesTo Extension
Component WysiwygPlugin
Priority Urgent
CurrentState Closed
Checkins distro:622a0f18ae81 distro:863567923173
TargetRelease major
ReleasedIn 2.0.0
CheckinsOnBranches Release01x01 trunk
trunkCheckins distro:863567923173
Release01x01Checkins distro:622a0f18ae81
Topic revision: r5 - 05 Jul 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy