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
2013-12-17T21:33:57Z warning |
Unmatched [ in regex; marked by <-- HERE in m/\.[ <-- HERE [Tasks.BookmakerPlugin$/ at /..path..to../lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm 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