]> git.mxchange.org Git - mailer.git/blobdiff - ref.php
Referal levels for surfbar added (unfinished)
[mailer.git] / ref.php
diff --git a/ref.php b/ref.php
index 456fc3b9691169625ca332d91624ff6ab7c7f977..05321030896f7026537c2529a0af1a355580b907 100644 (file)
--- a/ref.php
+++ b/ref.php
@@ -60,7 +60,7 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install
        }
 
        // Get referral ID from ref or refid variable
-       if (!empty($_GET['ref']))        $ref = strip_tags(htmlentities($_GET['ref']));
+       if (!empty($_GET['ref']))        $ref = secureString($_GET['ref']);
         elseif (!empty($_GET['refid'])) $ref = bigintval($_GET['refid']);
 
        if (!empty($ref))
@@ -74,6 +74,7 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install
                        list($ref) = SQL_FETCHROW($result);
                        SQL_FREERESULT($result);
                }
+
                // Also edit this 0 !
                if (empty($ref)) $ref = "0";