Fix typo for secure flag in CDA (#528)

This commit is contained in:
Clément Oudot 2012-09-08 12:30:05 +00:00
parent 8e2a057193
commit 52814914de

View File

@ -956,7 +956,7 @@ sub run ($$) {
$apacheRequest->args($args);
my $host = $apacheRequest->get_server_name();
my $redirectUrl = $class->_buildUrl( $apacheRequest->uri );
my $redirectHttps = ( $redirectUrl =~ m/^ĥttps/ );
my $redirectHttps = ( $redirectUrl =~ m/^https/ );
lmSetErrHeaderOut( $apacheRequest,
'Location' => $redirectUrl . ( $args ? "?" . $args : "" ) );
$host =~ s/^[^\.]+\.(.*\..*$)/$1/;