revert this, it seems wrong

master
joey 2006-08-04 01:47:07 +00:00
parent e36f6b6a99
commit 5077165953
2 changed files with 1 additions and 6 deletions

View File

@ -272,9 +272,7 @@ sub pagetitle ($) { #{{{
sub titlepage ($) { #{{{ sub titlepage ($) { #{{{
my $title=shift; my $title=shift;
$title=~y/ /_/; $title=~y/ /_/;
# Note: [:alnum:] is not used here, on purpose; unicode $title=~s/([^-[:alnum:]_:+\/.])/"__".ord($1)."__"/eg;
# not allowed in urls.
$title=~s/([^-A-Za-z0-9_:+\/.])/"__".ord($1)."__"/eg;
return $title; return $title;
} #}}} } #}}}

3
debian/changelog vendored
View File

@ -7,9 +7,6 @@ ikiwiki (1.16) UNRELEASED; urgency=low
* Make aggregator save permalinks and author name to pages as metadata. * Make aggregator save permalinks and author name to pages as metadata.
* Add permalink and author support to meta plugin, affecting RSS feeds * Add permalink and author support to meta plugin, affecting RSS feeds
and blog pages. and blog pages.
* Change titlepage() to encode utf-8 alnum characters. This is necessary
to avoid UTF-8 creeping into filenames in urls. (There are still
some other ways that it can get in.)
* Various CSS and formatting changes. * Various CSS and formatting changes.
-- Joey Hess <joeyh@debian.org> Thu, 3 Aug 2006 18:45:36 -0400 -- Joey Hess <joeyh@debian.org> Thu, 3 Aug 2006 18:45:36 -0400