* Fix tags to page names that contain special characters.

master
joey 2007-04-04 21:08:01 +00:00
parent 83618add81
commit d25e91e127
4 changed files with 7 additions and 3 deletions

View File

@ -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);

3
debian/changelog vendored
View File

@ -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 <joeyh@debian.org> Wed, 04 Apr 2007 16:55:36 -0400
-- Joey Hess <joeyh@debian.org> Wed, 04 Apr 2007 17:06:59 -0400
ikiwiki (1.48) unstable; urgency=low

View File

@ -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.
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]]

View File

@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"