fixed xsl file regex
git-svn-id: http://yolanda.mister-muffin.de/svn@344 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
9a117a970e
commit
19a297678b
1 changed files with 3 additions and 2 deletions
|
@ -301,7 +301,8 @@ sub output_page
|
||||||
|
|
||||||
# let the XSLT param choose other stylesheets or default to xhtml.xsl
|
# let the XSLT param choose other stylesheets or default to xhtml.xsl
|
||||||
my $param_xslt = $query->param('xslt');
|
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")
|
if( -f "$root/xsl/$param_xslt.xsl")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue