summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Util.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-03-06 01:50:01 +0100
committerDylan William Hardison <dylan@hardison.net>2017-03-26 04:00:07 +0200
commitdfb688869062b955488057144eaa99f5c91cea28 (patch)
treeebed3e26221db75d5a6c89b1a2e79376a6ac5f8c /Bugzilla/Util.pm
parentb15cb6e72d47026150c91af9918706ceb5c77109 (diff)
downloadbugzilla-dfb688869062b955488057144eaa99f5c91cea28.tar.gz
bugzilla-dfb688869062b955488057144eaa99f5c91cea28.tar.xz
Bug 1342795 - When urlbase is https, force the secure flag to be set on cookies.
Diffstat (limited to 'Bugzilla/Util.pm')
-rw-r--r--Bugzilla/Util.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm
index d2be18431..fcd4aff91 100644
--- a/Bugzilla/Util.pm
+++ b/Bugzilla/Util.pm
@@ -272,6 +272,7 @@ sub i_am_webservice {
# (doing so can mess up XML-RPC).
sub do_ssl_redirect_if_required {
return if !i_am_cgi();
+ return if Bugzilla->params->{urlbase} =~ /^https/i;
return if !Bugzilla->params->{'ssl_redirect'};
return if !Bugzilla->params->{'sslbase'};