From: Josh Triplett Date: Sun, 10 Feb 2008 06:53:28 +0000 (-0800) Subject: Tighten page name regex to not allow carriage returns or line feeds X-Git-Tag: 2.40~144 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/fb82474be06f1be2c96bdfc231c3768cabe0d4eb?hp=a35dd1d806f9bca82c0c04a4ff6c69956e3371a0 Tighten page name regex to not allow carriage returns or line feeds --- diff --git a/IkiWiki.pm b/IkiWiki.pm index a81dcfd6e..1091ca872 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -44,7 +44,7 @@ sub defaultconfig () { #{{{ \| # followed by '|' )? # optional - ([^\]#]+) # 2: page to link to + ([^\n\r\]#]+) # 2: page to link to (?: \# # '#', beginning of anchor ([^\s\]]+) # 3: anchor text