--- rpms/e-smith-manager/sme9/e-smith-manager-2.4.0-dont_rewrite_to_https_from_localhost.patch 2016/01/31 21:54:06 1.1 +++ rpms/e-smith-manager/sme9/e-smith-manager-2.4.0-dont_rewrite_to_https_from_localhost.patch 2016/02/05 16:41:09 1.2 @@ -6,7 +6,7 @@ diff -Nur e-smith-manager-2.4.0/root/etc $back ||= $ENV{HTTP_REFERER} if $ENV{HTTP_REFERER} && $BACK_REFERER; $back = uri_unescape($back) if $back && $back =~ m/^https?%3A%2F%2F/i; -$back =~ s/^http:/https:/; -+$back =~ s/^http:/https:/ if $server_name eq 'localhost'; ++$back =~ s/^http:/https:/ if $server_name ne 'localhost'; #warn "back is $back\n"; if ($back && $back =~ m!^/!) { my $hostname = $server_name;