From: <de...@de...> - 2017-04-07 19:12:50
|
Author: HaraldJoerg Date: 2017-04-07 19:12:41 +0000 (Fri, 07 Apr 2017) New Revision: 30322 Trac url: http://develop.twiki.org/trac/changeset/30322 Modified: twiki/trunk/RenderListPlugin/lib/TWiki/Plugins/RenderListPlugin.pm Log: Item7798: Escape left braces in regex (RenderListPlugin) Modified: twiki/trunk/RenderListPlugin/lib/TWiki/Plugins/RenderListPlugin.pm =================================================================== --- twiki/trunk/RenderListPlugin/lib/TWiki/Plugins/RenderListPlugin.pm 2017-04-07 19:12:23 UTC (rev 30321) +++ twiki/trunk/RenderListPlugin/lib/TWiki/Plugins/RenderListPlugin.pm 2017-04-07 19:12:41 UTC (rev 30322) @@ -69,9 +69,9 @@ # Render here, not in commonTagsHandler so that lists produced by # Plugins, TOC and SEARCH can be rendered if ($_[0] =~/%RENDERLIST/o ) { - unless ($_[0] =~ s/%RENDERLIST{(.*?)}%(([\n\r]+[^ ]{3}[^\n\r]*)*?)(([\n\r]+ {3}[^\n\r]*)+)/&handleRenderList($1, $2, $4)/ges ) { + unless ($_[0] =~ s/%RENDERLIST\{(.*?)}%(([\n\r]+[^ ]{3}[^\n\r]*)*?)(([\n\r]+ {3}[^\n\r]*)+)/&handleRenderList($1, $2, $4)/ges ) { # Cairo compatibility fallback - $_[0] =~ s/%RENDERLIST{(.*?)}%(([\n\r]+[^\t]{1}[^\n\r]*)*?)(([\n\r]+\t[^\n\r]*)+)/&handleRenderList($1, $2, $4)/ges; + $_[0] =~ s/%RENDERLIST\{(.*?)}%(([\n\r]+[^\t]{1}[^\n\r]*)*?)(([\n\r]+\t[^\n\r]*)+)/&handleRenderList($1, $2, $4)/ges; } } } |