From 346ebe6367a15dd297aee835118b4b2b304ed965 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Mon, 29 Sep 2003 18:30:19 +0000 Subject: [PATCH] fixed a couple of typos --- lib/WebGUI/Affiliate.pm | 2 +- lib/WebGUI/Wobject/HttpProxy.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/Affiliate.pm b/lib/WebGUI/Affiliate.pm index d2e4ce6c1..44201548d 100644 --- a/lib/WebGUI/Affiliate.pm +++ b/lib/WebGUI/Affiliate.pm @@ -24,7 +24,7 @@ use WebGUI::User; sub grabReferral { if ($session{user}{userId} != 1 && $session{user}{referringAffiliate} > 0) { return ""; - } elsif ($session{user}{userId} != 1 && $session{user}{referringAffiliate} == 0) { + } elsif ($session{user}{userId} != 1 && $session{user}{referringAffiliate} == 0 && $session{scratch}{referringAffiliate} > 0) { my $u = WebGUI::User->new($session{user}{userId}); $u->referringAffiliate($session{scratch}{referringAffiliate}); WebGUI::Session::deleteScratch("referringAffiliate"); diff --git a/lib/WebGUI/Wobject/HttpProxy.pm b/lib/WebGUI/Wobject/HttpProxy.pm index c35775fbf..c1684c8f7 100644 --- a/lib/WebGUI/Wobject/HttpProxy.pm +++ b/lib/WebGUI/Wobject/HttpProxy.pm @@ -182,8 +182,8 @@ sub www_view { #if ($_[0]->get("followExternal")==0 && $proxiedUrl !~ /\Q$allowed_url/i) { if ($_[0]->get("followExternal")==0 && - $var{header} = "text/html"; (URI->new($_[0]->get('proxiedUrl'))->host) ne (URI->new($proxiedUrl)->host) ) { + $var{header} = "text/html"; return "

You are not allowed to leave ".$_[0]->get("proxiedUrl")."

"; }