]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki.pm
Don't allow newlines in link text in a wikilink.
[ikiwiki.git] / IkiWiki.pm
index 0485da75c74e83cfc9a8245568e6cfb8079f0f66..6d89adddf78a24792f8b986eaee0446b6caa98d9 100644 (file)
@@ -39,7 +39,7 @@ sub defaultconfig () { #{{{
        wiki_link_regexp => qr{
                \[\[                    # beginning of link
                (?:
-                       ([^\]\|]+)      # 1: link text
+                       ([^\]\|\n]+)      # 1: link text
                        \|              # followed by '|'
                )?                      # optional