From 8cbf20b55bb339ed4940711d371d6b607dcac8e4 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 11 May 2007 12:12:30 +0000 Subject: [PATCH] open() nur mit sicheren Argumenten aufrufen. --- bin/mozilla/admin.pl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bin/mozilla/admin.pl b/bin/mozilla/admin.pl index 879ccd749..4e33ef200 100644 --- a/bin/mozilla/admin.pl +++ b/bin/mozilla/admin.pl @@ -694,11 +694,6 @@ sub form_header { @a = ; close(FH); - if (open(FH, "custom_$menufile")) { - push @a, ; - } - close(FH); - foreach $item (@a) { next unless $item =~ /\[/; next if $item =~ /\#/; @@ -971,6 +966,9 @@ sub save { } } + $form->{templates} =~ s|.*/||; + $form->{mastertemplates} =~ s|.*/||; + # create user template directory and copy master files if (!-d "$form->{templates}") { umask(002); -- 2.20.1