summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Triplett <josh@freedesktop.org>2008-02-09 22:53:28 -0800
committerJosh Triplett <josh@freedesktop.org>2008-02-09 22:53:28 -0800
commitfb82474be06f1be2c96bdfc231c3768cabe0d4eb (patch)
treedfb099deff5387d78123d9c95f304692bc3ab01b
parenta35dd1d806f9bca82c0c04a4ff6c69956e3371a0 (diff)
Tighten page name regex to not allow carriage returns or line feeds
-rw-r--r--IkiWiki.pm2
1 files changed, 1 insertions, 1 deletions
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