/[smeserver]/rpms/e-smith-manager/sme9/e-smith-manager-2.4.0-Back.patch
ViewVC logotype

Contents of /rpms/e-smith-manager/sme9/e-smith-manager-2.4.0-Back.patch

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


Revision 1.1 - (show annotations) (download)
Sun Feb 24 06:05:04 2013 UTC (11 years, 8 months ago) by wellsi
Branch: MAIN
CVS Tags: e-smith-manager-2_4_0-5_el6_sme, e-smith-manager-2_4_0-7_el6_sme, e-smith-manager-2_4_0-8_el6_sme, e-smith-manager-2_4_0-9_el6_sme, e-smith-manager-2_4_0-6_el6_sme
* Sat Feb 23 2013 Ian Wells <esmith@wellsi.com> 2.4.0-5.sme
- Correct processing of server-manager URL [SME: 7254]

1 diff -ruN e-smith-manager-2.4.0.old/root/etc/e-smith/web/common/cgi-bin/login e-smith-manager-2.4.0/root/etc/e-smith/web/common/cgi-bin/login
2 --- e-smith-manager-2.4.0.old/root/etc/e-smith/web/common/cgi-bin/login 2013-01-31 13:31:37.000000000 -0800
3 +++ e-smith-manager-2.4.0/root/etc/e-smith/web/common/cgi-bin/login 2013-02-23 21:40:35.000000000 -0800
4 @@ -101,6 +101,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 = uri_unescape($back) if $back && $back =~ m/^https?%3A%2F%2F/i;
9 $back =~ s/^http:/https:/;
10 #warn "back is $back\n";
11 if ($back && $back =~ m!^/!) {
12 @@ -113,7 +114,7 @@
13 $back = 'http://' . $back;
14 #warn "back is $back\n";
15 }
16 -$back = uri_unescape($back) if $back && $back =~ m/^https?%3A%2F%2F/;
17 +
18 #warn "back is $back\n";
19 my $back_esc = uri_escape($back) if $back;
20 my $back_html = escapeHTML($back) if $back;

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