зеркало из https://github.com/mozilla/pjs.git
Backing out patch from bug 186383 because it broke quicksearch
This commit is contained in:
Родитель
8bede8d38b
Коммит
a2970f5a96
|
@ -820,27 +820,12 @@ if ($my_create_htaccess) {
|
|||
open HTACCESS, ">.htaccess";
|
||||
print HTACCESS <<'END';
|
||||
# don't allow people to retrieve non-cgi executable files or our private data
|
||||
<FilesMatch ^(.*\.pl|localconfig.*|processmail|runtests.sh)$>
|
||||
<FilesMatch ^(.*\.pl|localconfig|processmail|runtests.sh)$>
|
||||
deny from all
|
||||
</FilesMatch>
|
||||
END
|
||||
close HTACCESS;
|
||||
chmod $fileperm, ".htaccess";
|
||||
} else {
|
||||
# 2002-12-21 Bug 186383
|
||||
open HTACCESS, ".htaccess";
|
||||
my $oldaccess = "";
|
||||
while (<HTACCESS>) {
|
||||
$oldaccess .= $_;
|
||||
}
|
||||
close HTACCESS;
|
||||
if ($oldaccess =~ s/(localconfig)(\|)/$1.*$2/) {
|
||||
print "Repairing .htaccess...\n";
|
||||
open HTACCESS, ">.htaccess";
|
||||
print HTACCESS $oldaccess;
|
||||
close HTACCESS;
|
||||
}
|
||||
|
||||
}
|
||||
if (!-e "Bugzilla/.htaccess") {
|
||||
print "Creating Bugzilla/.htaccess...\n";
|
||||
|
|
Загрузка…
Ссылка в новой задаче