From 14cc1e34b3b5856c991cbcd41634ce4d0165e5d0 Mon Sep 17 00:00:00 2001 From: erlehmann Date: Sun, 11 May 2008 20:59:44 +0000 Subject: [PATCH] enjoy your brackets git-svn-id: http://yolanda.mister-muffin.de/svn@345 7eef14d0-6ed0-489d-bf55-20463b2d70db --- trunk/functions.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/trunk/functions.pl b/trunk/functions.pl index 46a1e96..4e45e90 100644 --- a/trunk/functions.pl +++ b/trunk/functions.pl @@ -301,9 +301,8 @@ sub output_page # let the XSLT param choose other stylesheets or default to xhtml.xsl my $param_xslt = $query->param('xslt'); - - $param_xslt =~ s/[^a-z0-9\$\-_.+!*'(),]//gi; - + $param_xslt =~ s/[^a-z0-9\[\]\$\-_.+!*'(),]//gi; + if( -f "$root/xsl/$param_xslt.xsl") { $xsltpath = "$root/xsl/$param_xslt.xsl"