From: joey Date: Mon, 24 Sep 2007 16:50:49 +0000 (+0000) Subject: * Don't allow whitespace in link text in a wikilink. This was still X-Git-Tag: 2.9~46 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b86f9b8409bb55162dfc7d4d13ea3ee577cce525;p=ikiwiki.git * Don't allow whitespace in link text in a wikilink. This was still allowed by the regexp in one case though not documented to work, and was ambiguous with preprocessor directives. --- diff --git a/IkiWiki.pm b/IkiWiki.pm index 0b9790d8a..1c8783187 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -39,7 +39,7 @@ sub defaultconfig () { #{{{ wiki_link_regexp => qr{ \[\[ # beginning of link (?: - ([^\]\|\n]+) # 1: link text + ([^\]\|\n\s]+) # 1: link text \| # followed by '|' )? # optional diff --git a/debian/changelog b/debian/changelog index 97bf74136..081af219f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -16,8 +16,11 @@ ikiwiki (2.9) UNRELEASED; urgency=low files in some situations, and this is appropriate in some cases, such as the teximg plugin's error log file. Such files will be automatically cleaned up at an appopriate later time. + * Don't allow whitespace in link text in a wikilink. This was still + allowed by the regexp in one case though not documented to work, and + was ambiguous with preprocessor directives. - -- Joey Hess Sat, 22 Sep 2007 14:19:58 -0400 + -- Joey Hess Mon, 24 Sep 2007 12:48:35 -0400 ikiwiki (2.8) unstable; urgency=low diff --git a/po/ikiwiki.pot b/po/ikiwiki.pot index f5b77b266..626eb2ba5 100644 --- a/po/ikiwiki.pot +++ b/po/ikiwiki.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2007-09-21 13:25-0400\n" +"POT-Creation-Date: 2007-09-24 12:48-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -53,17 +53,17 @@ msgstr "" msgid "creating %s" msgstr "" -#: ../IkiWiki/CGI.pm:505 ../IkiWiki/CGI.pm:523 ../IkiWiki/CGI.pm:533 -#: ../IkiWiki/CGI.pm:566 ../IkiWiki/CGI.pm:610 +#: ../IkiWiki/CGI.pm:505 ../IkiWiki/CGI.pm:524 ../IkiWiki/CGI.pm:534 +#: ../IkiWiki/CGI.pm:567 ../IkiWiki/CGI.pm:611 #, perl-format msgid "editing %s" msgstr "" -#: ../IkiWiki/CGI.pm:704 +#: ../IkiWiki/CGI.pm:705 msgid "You are banned." msgstr "" -#: ../IkiWiki/CGI.pm:724 +#: ../IkiWiki/CGI.pm:725 msgid "login failed, perhaps you need to turn on cookies?" msgstr "" @@ -605,7 +605,7 @@ msgstr "" #. translators: preprocessor directive name, #. translators: the second a page name, the #. translators: third a number. -#: ../IkiWiki.pm:705 +#: ../IkiWiki.pm:708 #, perl-format msgid "%s preprocessing loop detected on %s at depth %i" msgstr ""