aboutsummaryrefslogtreecommitdiff
path: root/ikiwiki
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-29 02:14:55 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-29 02:14:55 +0000
commit0a95ac2144de8552eeebabd6467bf25969352240 (patch)
treeec0649770fcab8c13d33d534af91db29840f4de0 /ikiwiki
parentf6b33b87721b54f7947be87296fc583564331f9e (diff)
downloadikiwiki-0a95ac2144de8552eeebabd6467bf25969352240.tar
ikiwiki-0a95ac2144de8552eeebabd6467bf25969352240.tar.gz
Improved handling of wikilinks containing characters that are not allowed
in filenames. Now converts to valid filenames automatically. Note, need to --refresh your wiki after updating to this version, if you use any pages with __nn__ in their names.
Diffstat (limited to 'ikiwiki')
-rwxr-xr-xikiwiki7
1 files changed, 7 insertions, 0 deletions
diff --git a/ikiwiki b/ikiwiki
index 9e9c29354..44a7abaf4 100755
--- a/ikiwiki
+++ b/ikiwiki
@@ -252,6 +252,13 @@ sub pagetitle ($) { #{{{
return $page;
} #}}}
+sub titlepage ($) { #{{{
+ my $title=shift;
+ $title=~y/ /_/;
+ $title=~s/([^-A-Za-z0-9_:+\/])/"__".ord($1)."__"/eg;
+ return $title;
+} #}}}
+
sub htmllink ($$;$$$) { #{{{
my $page=shift;
my $link=shift;