fixed a couple of typos
This commit is contained in:
parent
d1fe30f9d2
commit
346ebe6367
2 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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 "<h1>You are not allowed to leave ".$_[0]->get("proxiedUrl")."</h1>";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue