diff options
author | Josh Triplett <josh@freedesktop.org> | 2008-02-09 22:53:28 -0800 |
---|---|---|
committer | Josh Triplett <josh@freedesktop.org> | 2008-02-09 22:53:28 -0800 |
commit | fb82474be06f1be2c96bdfc231c3768cabe0d4eb (patch) | |
tree | dfb099deff5387d78123d9c95f304692bc3ab01b | |
parent | a35dd1d806f9bca82c0c04a4ff6c69956e3371a0 (diff) |
Tighten page name regex to not allow carriage returns or line feeds
-rw-r--r-- | IkiWiki.pm | 2 |
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 |