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
0481e9aa
Commit
0481e9aa
authored
May 22, 2010
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 560733: Move the base .htaccess file into bzr instead of having it
generated by checksetup.pl r=LpSolit, a=mkanat
parent
e0d724fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
40 deletions
+6
-40
.htaccess
.htaccess
+4
-0
Filesystem.pm
Bugzilla/Install/Filesystem.pm
+2
-40
No files found.
.htaccess
0 → 100644
View file @
0481e9aa
# Don't allow people to retrieve non-cgi executable files or our private data
<
FilesMatch
^(.*\.pm|.*\.pl|.*localconfig.*)$
>
deny
from
all
</
FilesMatch
>
Bugzilla/Install/Filesystem.pm
View file @
0481e9aa
...
...
@@ -279,14 +279,8 @@ EOT
contents
=>
HT_DEFAULT_DENY
},
't/.htaccess'
=>
{
perms
=>
$ws_readable
,
contents
=>
HT_DEFAULT_DENY
},
'.htaccess'
=>
{
perms
=>
$ws_readable
,
contents
=>
<<EOT
# Don't allow people to retrieve non-cgi executable files or our private data
<FilesMatch ^(.*\\.pm|.*\\.pl|.*localconfig.*)\$>
deny from all
</FilesMatch>
EOT
},
"$datadir/.htaccess"
=>
{
perms
=>
$ws_readable
,
contents
=>
HT_DEFAULT_DENY
},
"$webdotdir/.htaccess"
=>
{
perms
=>
$ws_readable
,
contents
=>
<<EOT
# Restrict access to .dot files to the public webdot server at research.att.com
...
...
@@ -306,18 +300,6 @@ EOT
Deny from all
EOT
},
# Even though $datadir may not (and should not) be accessible from the
# web server, we can't know for sure, so create the .htaccess anyway.
# It's harmless if it isn't accessible...
"$datadir/.htaccess"
=>
{
perms
=>
$ws_readable
,
contents
=>
<<EOT
# Nothing in this directory is retrievable unless overridden by an .htaccess
# in a subdirectory.
deny from all
EOT
},
);
my
%
all_files
=
(
%
create_files
,
%
htaccess
,
%
index_html
,
%
files
);
...
...
@@ -433,26 +415,6 @@ sub create_htaccess {
_create_files
(
%
{
FILESYSTEM
()
->
{
htaccess
}});
# Repair old .htaccess files
my
$htaccess
=
new
IO::
File
(
'.htaccess'
,
'r'
)
||
die
".htaccess: $!"
;
my
$old_data
;
{
local
$/
;
$old_data
=
<
$htaccess
>
;
}
$htaccess
->
close
;
my
$repaired
=
0
;
if
(
$old_data
=~
s/\|localconfig\|/\|.*localconfig.*\|/
)
{
$repaired
=
1
;
}
if
(
$old_data
!~
/\(\.\*\\\.pm\|/
)
{
$old_data
=~
s/\(/(.*\\.pm\|/
;
$repaired
=
1
;
}
if
(
$repaired
)
{
print
"Repairing .htaccess...\n"
;
$htaccess
=
new
IO::
File
(
'.htaccess'
,
'w'
)
||
die
$!
;
print
$htaccess
$old_data
;
$htaccess
->
close
;
}
my
$webdot_dir
=
bz_locations
()
->
{
'webdotdir'
};
# The public webdot IP address changed.
...
...
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