From 545a57e3d1866c18cce29dae67da2bd48e775ef0 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 12 Dec 2005 10:55:46 +0000 Subject: [PATCH] =?utf8?q?Bug=20319241:=20Bugzilla.pm=20is=20freely=20acce?= =?utf8?q?ssible=20from=20the=20web=20-=20Patch=20by=20Fr=C3=A9d=C3=A9ric?= =?utf8?q?=20Buclin=20=20r/a=3Dmyk?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- checksetup.pl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/checksetup.pl b/checksetup.pl index 5d901b646b..614d1d7aa7 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -1014,7 +1014,7 @@ if ($my_create_htaccess) { open HTACCESS, '>', '.htaccess'; print HTACCESS <<'END'; # don't allow people to retrieve non-cgi executable files or our private data - + deny from all END @@ -1028,7 +1028,15 @@ END $oldaccess .= $_; } close HTACCESS; + my $repaired = 0; if ($oldaccess =~ s/\|localconfig\|/\|.*localconfig.*\|/) { + $repaired = 1; + } + if ($oldaccess !~ /\(\.\*\\\.pm\|/) { + $oldaccess =~ s/\(/(.*\\.pm\|/; + $repaired = 1; + } + if ($repaired) { print "Repairing .htaccess...\n"; open HTACCESS, '>', '.htaccess'; print HTACCESS $oldaccess; -- 2.47.2