X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=doubler.php;h=26dd0545c674db3b05d24c57cea623c11d7afd16;hp=db9ebf7a397a0278bc6a82a384d9228bf8aaa6ab;hb=7eb9da85bfb337997a58a244cb610c97a8d10c13;hpb=524c58a61b0a074fed8d7c9dc2f9ddab7f653595 diff --git a/doubler.php b/doubler.php index db9ebf7a39..26dd0545c6 100644 --- a/doubler.php +++ b/doubler.php @@ -57,7 +57,7 @@ if (!EXT_IS_ACTIVE("doubler")) { // Is the script installed? if (isBooleanConstantAndTrue('mxchange_installed')) { // Probe for referal ID - if (!empty($_GET['refid'])) $GLOBALS['refid'] = bigintval($_GET['refid']); + if (!empty($_GET['refid'])) $GLOBALS['refid'] = SQL_ESCAPE($_GET['refid']); // Probe for nickname extension and if a nickname was supplied by URL $probe_nickname = ((EXT_IS_ACTIVE("nickname")) && (("".round($GLOBALS['refid'])."") != $GLOBALS['refid'])); @@ -214,12 +214,9 @@ if (isBooleanConstantAndTrue('mxchange_installed')) { if (!empty($uid)) { // Transfer userid/nickname to constant define('__REFID', $uid); - } elseif (!empty($GLOBALS['refid'])) { + } else { // Transfer userid/nickname to constant define('__REFID', $GLOBALS['refid']); - } else { - // Transfer default refid to constant - define('__REFID', $_CONFIG['def_refid']); } // Percent values etc.