/[smeserver]/rpms/e-smith-manager/sme9/e-smith-manager-2.6.0-bz10187-emptyback.patch
ViewVC logotype

Diff of /rpms/e-smith-manager/sme9/e-smith-manager-2.6.0-bz10187-emptyback.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by unnilennium, Sun Mar 26 04:04:36 2017 UTC Revision 1.2 by unnilennium, Mon Mar 27 22:48:06 2017 UTC
# Line 6  diff -Nur e-smith-manager-2.8.0.old/root Line 6  diff -Nur e-smith-manager-2.8.0.old/root
6   $back ||= $ENV{HTTP_REFERER} if $ENV{HTTP_REFERER} && $BACK_REFERER;   $back ||= $ENV{HTTP_REFERER} if $ENV{HTTP_REFERER} && $BACK_REFERER;
7   $back = uri_unescape($back) if $back && $back =~ m/^https?%3A%2F%2F/i;   $back = uri_unescape($back) if $back && $back =~ m/^https?%3A%2F%2F/i;
8  -$back =~ s/^http:/https:/ if $server_name ne 'localhost';  -$back =~ s/^http:/https:/ if $server_name ne 'localhost';
9  +$back =~ s/^http:/https:/ if $server_name ne 'localhost' && defined($back;  +$back =~ s/^http:/https:/ if $server_name ne 'localhost' && defined($back);
10   #warn "back is $back\n";   #warn "back is $back\n";
11   if ($back && $back =~ m!^/!) {   if ($back && $back =~ m!^/!) {
12     my $hostname = $server_name;     my $hostname = $server_name;


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed