From: joey Date: Wed, 4 Apr 2007 21:08:01 +0000 (+0000) Subject: * Fix tags to page names that contain special characters. X-Git-Tag: 1.49~97 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d25e91e12735b9c1095776f7f32aedecf920ff2d;p=ikiwiki.git * Fix tags to page names that contain special characters. --- diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm index 7ab271622..733d76f4e 100644 --- a/IkiWiki/Plugin/tag.pm +++ b/IkiWiki/Plugin/tag.pm @@ -43,6 +43,7 @@ sub preprocess (@) { #{{{ delete $params{preview}; foreach my $tag (keys %params) { + $tag=IkiWiki::linkpage($tag); $tags{$page}{$tag}=1; # hidden WikiLink push @{$links{$page}}, tagpage($tag); diff --git a/debian/changelog b/debian/changelog index 0b8c28d1d..461b791d3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -22,8 +22,9 @@ ikiwiki (1.49) UNRELEASED; urgency=low * Make the OpenID library a reccommendation of the Debian package, rather than just a suggests, since OpenID is enabled by default. * Fix a bug that caused link(foo) to succeed if page foo did not exist. + * Fix tags to page names that contain special characters. - -- Joey Hess Wed, 04 Apr 2007 16:55:36 -0400 + -- Joey Hess Wed, 04 Apr 2007 17:06:59 -0400 ikiwiki (1.48) unstable; urgency=low diff --git a/doc/bugs/special_characters_in_tag_names_need_manual_escaping.mdwn b/doc/bugs/special_characters_in_tag_names_need_manual_escaping.mdwn index 20ddc2ce7..9f6ad8a9b 100644 --- a/doc/bugs/special_characters_in_tag_names_need_manual_escaping.mdwn +++ b/doc/bugs/special_characters_in_tag_names_need_manual_escaping.mdwn @@ -1 +1,3 @@ -Having read [[i18n_characters_in_post_title]], I have a page named `St John's` in a file named `St_John__39__s.mdwn`. Regular wikilinks like `\\[[St_John's]]` successfully point to that page. However, if I tag a page with `\[[tag St_John's]]`, that link is shown as pointing to a non-existant page. Modify the tag to read `\[[tag St_John__39__s]]` works around the problem. \ No newline at end of file +Having read [[i18n_characters_in_post_title]], I have a page named `St John's` in a file named `St_John__39__s.mdwn`. Regular wikilinks like `\\[[St_John's]]` successfully point to that page. However, if I tag a page with `\[[tag St_John's]]`, that link is shown as pointing to a non-existant page. Modify the tag to read `\[[tag St_John__39__s]]` works around the problem. + +[[done]] in 1.49 --[[Joey]] diff --git a/po/ikiwiki.pot b/po/ikiwiki.pot index a68da073c..2fda7cd94 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-04-02 14:54-0400\n" +"POT-Creation-Date: 2007-04-04 17:06-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n"