Figure out the secure URL in an apache-friendly manner.
git-svn-id: svn://10.0.0.236/trunk@20162 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
9c60acb6ce
commit
676b7edbaf
@ -66,8 +66,7 @@ print start_html(-Title=>"Despot -- configure mozilla users$extra",
|
||||
if (!param()) {
|
||||
print h1("Despot -- access control for mozilla.org.");
|
||||
if ($ENV{"HTTPS"} ne "ON") {
|
||||
my $fixedurl = $ENV{"SERVER_URL"} . $ENV{"SCRIPT_NAME"};
|
||||
$fixedurl =~ s/^http:/https:/;
|
||||
my $fixedurl = "https://$ENV{'SERVER_NAME'}$ENV{'SCRIPT_NAME'}";
|
||||
print b("<font color=red>If possible, please use the " .
|
||||
a({href=>$fixedurl}, "secure version of this form") .
|
||||
".</font>");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user