1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-manager-1.14.0/root/etc/e-smith/web/common/cgi-bin/login mezzanine_patched_e-smith-manager-1.14.0/root/etc/e-smith/web/common/cgi-bin/login |
2 |
--- e-smith-manager-1.14.0/root/etc/e-smith/web/common/cgi-bin/login 2007-04-09 01:45:43.000000000 -0600 |
3 |
+++ mezzanine_patched_e-smith-manager-1.14.0/root/etc/e-smith/web/common/cgi-bin/login 2007-04-09 01:44:23.000000000 -0600 |
4 |
@@ -100,6 +100,7 @@ |
5 |
$back ||= $q->param($at->back_arg_name) if $at->back_arg_name; |
6 |
warn "back from cgi param is $back\n" if $back; |
7 |
$back ||= $ENV{HTTP_REFERER} if $ENV{HTTP_REFERER} && $BACK_REFERER; |
8 |
+$back =~ s/^http:/https:/; |
9 |
warn "back is $back\n"; |
10 |
if ($back && $back =~ m!^/!) { |
11 |
my $hostname = $server_name; |