From fb82474be06f1be2c96bdfc231c3768cabe0d4eb Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Sat, 9 Feb 2008 22:53:28 -0800 Subject: [PATCH] Tighten page name regex to not allow carriage returns or line feeds --- IkiWiki.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2