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.tremily.us/?a=commitdiff_plain;h=fb82474be06f1be2c96bdfc231c3768cabe0d4eb;p=ikiwiki.git 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