aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/polygen.pm
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-10-22 21:12:50 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-10-22 21:12:50 +0000
commit771791104c78e4527fdfb51be0c6e5fae46b1aee (patch)
tree432e2f9915678bedcd9eb59bf8fbdd21c65bee84 /IkiWiki/Plugin/polygen.pm
parentc49af80ab38f71abcbe9887dde4b76d462595f4a (diff)
downloadikiwiki-771791104c78e4527fdfb51be0c6e5fae46b1aee.tar
ikiwiki-771791104c78e4527fdfb51be0c6e5fae46b1aee.tar.gz
* Change the rss feed title from the wikiname to the page title, with
an exception for the wiki's toplevel index page, which will still use the wikiname as the feed title. * Sanitize possibly problimatic characters out of the polygen grammar names, just in case. Should not be exploitable anyway, since it only tries to run polygen after finding the specified grammar file.
Diffstat (limited to 'IkiWiki/Plugin/polygen.pm')
-rw-r--r--IkiWiki/Plugin/polygen.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/polygen.pm b/IkiWiki/Plugin/polygen.pm
index 05ad4416e..966b6cb51 100644
--- a/IkiWiki/Plugin/polygen.pm
+++ b/IkiWiki/Plugin/polygen.pm
@@ -21,6 +21,7 @@ sub preprocess (@) { #{{{
# Sanitize parameters
$grammar =~ IkiWiki::basename($grammar);
+ $grammar =~ s/[^A-Za-z0-9]//g;
$grammar =~ s/\.grm$//;
$grammar .= '.grm';
$symbol =~ s/[^A-Za-z0-9]//g if defined $symbol;