Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
545a57e3
Commit
545a57e3
authored
Dec 12, 2005
by
lpsolit%gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 319241: Bugzilla.pm is freely accessible from the web - Patch by Frédéric…
Bug 319241: Bugzilla.pm is freely accessible from the web - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=myk
parent
c7bb724e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
checksetup.pl
checksetup.pl
+9
-1
No files found.
checksetup.pl
View file @
545a57e3
...
@@ -1014,7 +1014,7 @@ if ($my_create_htaccess) {
...
@@ -1014,7 +1014,7 @@ if ($my_create_htaccess) {
open
HTACCESS
,
'>'
,
'.htaccess'
;
open
HTACCESS
,
'>'
,
'.htaccess'
;
print
HTACCESS
<<'END';
print
HTACCESS
<<'END';
# don't allow people to retrieve non-cgi executable files or our private data
# don't allow people to retrieve non-cgi executable files or our private data
<FilesMatch ^(.*\.pl|.*localconfig.*)$>
<FilesMatch ^(.*\.p
m|.*\.p
l|.*localconfig.*)$>
deny from all
deny from all
</FilesMatch>
</FilesMatch>
END
END
...
@@ -1028,7 +1028,15 @@ END
...
@@ -1028,7 +1028,15 @@ END
$oldaccess
.=
$_
;
$oldaccess
.=
$_
;
}
}
close
HTACCESS
;
close
HTACCESS
;
my
$repaired
=
0
;
if
(
$oldaccess
=~
s/\|localconfig\|/\|.*localconfig.*\|/
)
{
if
(
$oldaccess
=~
s/\|localconfig\|/\|.*localconfig.*\|/
)
{
$repaired
=
1
;
}
if
(
$oldaccess
!~
/\(\.\*\\\.pm\|/
)
{
$oldaccess
=~
s/\(/(.*\\.pm\|/
;
$repaired
=
1
;
}
if
(
$repaired
)
{
print
"Repairing .htaccess...\n"
;
print
"Repairing .htaccess...\n"
;
open
HTACCESS
,
'>'
,
'.htaccess'
;
open
HTACCESS
,
'>'
,
'.htaccess'
;
print
HTACCESS
$oldaccess
;
print
HTACCESS
$oldaccess
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment