Tighten page name regex to not allow carriage returns or line feeds
authorJosh Triplett <josh@freedesktop.org>
Sun, 10 Feb 2008 06:53:28 +0000 (22:53 -0800)
committerJosh Triplett <josh@freedesktop.org>
Sun, 10 Feb 2008 06:53:28 +0000 (22:53 -0800)
IkiWiki.pm

index a81dcfd6ea173a840a8c9a9ff4d13193110f99b0..1091ca8728ee94af5378247a409a9d6e0c45e552 100644 (file)
@@ -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