SendSQL("UNLOCK TABLES") if $unlock_tables;
# Copy the extra_vars into the vars hash
- @::vars{keys %$extra_vars} = values %$extra_vars;
-
+ foreach my $var (keys %$extra_vars) {
+ $vars->{$var} = $extra_vars->{$var};
+ }
+
# We may one day log something to file here also.
$vars->{'variables'} = $extra_vars;
SendSQL("UNLOCK TABLES") if $unlock_tables;
# Copy the extra_vars into the vars hash
- @::vars{keys %$extra_vars} = values %$extra_vars;
-
+ foreach my $var (keys %$extra_vars) {
+ $vars->{$var} = $extra_vars->{$var};
+ }
+
print "Content-type: text/html\n\n" if !$vars->{'header_done'};
$template->process("global/user-error.html.tmpl", $vars)
|| ThrowTemplateError($template->error());
# Security - allow letters and a hyphen only
$ctype =~ s/[^a-zA-Z\-]//g;
$format =~ s/[^a-zA-Z\-]//g;
+ trick_taint($ctype);
+ trick_taint($format);
$template .= ($format ? "-$format" : "");
$template .= ".$ctype.tmpl";