X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mailid.php;h=d0c4dbf7d7483c0516780422793a2734eb05d4a9;hb=67f53c107d5b68f6e735407b98803fc83e12d7b4;hp=1c4762dab2a2906ee91ebfb2d81a48fb135be41d;hpb=7e17864b7d07fb5123b1b1d68f83db28ea5394ef;p=mailer.git diff --git a/mailid.php b/mailid.php index 1c4762dab2..d0c4dbf7d7 100644 --- a/mailid.php +++ b/mailid.php @@ -68,7 +68,7 @@ if (isGetRequestParameterSet('mailid')) $url_mid = bigintval(getRequestParam if (isGetRequestParameterSet('bonusid')) $url_bid = bigintval(getRequestParameter('bonusid')); // 01 1 12 2 2 21 1 2210 -if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (!ifFatalErrorsDetected())) { +if ((isValidUserId($url_userid)) && (($url_mid > 0) || ($url_bid > 0)) && (!ifFatalErrorsDetected())) { // Init result $result_link = false; @@ -175,7 +175,7 @@ if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (!ifFatalErrorsDe // Was that mail a valid one? if ($isValid === true) { // If time is zero seconds we have a sponsor mail. 1 Second shall be set to avoid problems - if (($time == '0') && ($payment > 0)) { $URL = getConfig('URL'); $time = 1; } + if (($time == '0') && ($payment > 0)) { $URL = getUrl(); $time = 1; } if (($time > 0) && (($payment > 0) || ($points > 0))) { // Export data into constants for the template $content = array(