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
067e958d
Commit
067e958d
authored
Dec 06, 2010
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 607138: Don't send the Strict-Transport-Security header for the
attachment_base. r=LpSolit, a=LpSolit
parent
6fac08b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
CGI.pm
Bugzilla/CGI.pm
+6
-2
No files found.
Bugzilla/CGI.pm
View file @
067e958d
...
...
@@ -275,9 +275,13 @@ sub header {
# Add Strict-Transport-Security (STS) header if this response
# is over SSL and the strict_transport_security param is turned on.
if
(
$self
->
https
&&
Bugzilla
->
params
->
{
'strict_transport_security'
}
ne
'off'
)
{
if
(
$self
->
https
&&
!
$self
->
url_is_attachment_base
&&
Bugzilla
->
params
->
{
'strict_transport_security'
}
ne
'off'
)
{
my
$sts_opts
=
'max-age='
.
MAX_STS_AGE
;
if
(
Bugzilla
->
params
->
{
'strict_transport_security'
}
eq
'include_subdomains'
)
{
if
(
Bugzilla
->
params
->
{
'strict_transport_security'
}
eq
'include_subdomains'
)
{
$sts_opts
.=
'; includeSubDomains'
;
}
unshift
(
@_
,
'-strict_transport_security'
=>
$sts_opts
);
...
...
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