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