summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorturon <spider@turon>2016-02-08 10:10:23 -0500
committerturon <spider@turon>2016-02-08 10:10:23 -0500
commitd6aa7800a1a7fcaadaeb77cc4a1f0be36007d301 (patch)
treeba1676b4b8c350e3ee62d38fc134840922e60d3b
parentb7879230a1a55584f38301d18888be32585d05cc (diff)
downloadstats-d6aa7800a1a7fcaadaeb77cc4a1f0be36007d301.tar.gz
stats-d6aa7800a1a7fcaadaeb77cc4a1f0be36007d301.tar.bz2
stats-d6aa7800a1a7fcaadaeb77cc4a1f0be36007d301.zip
remove http: check in referrer link
-rw-r--r--bit_setup_inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/bit_setup_inc.php b/bit_setup_inc.php
index 255a8db..15ae67b 100644
--- a/bit_setup_inc.php
+++ b/bit_setup_inc.php
@@ -31,7 +31,7 @@ if( $gBitSystem->isPackageActive( 'stats' )) {
if( !$gBitUser->isRegistered() && !empty( $_SERVER['HTTP_REFERER'] ) && strlen( $_SERVER['HTTP_REFERER'] ) > 9 ) {
// Explode the HTTP_REFERER address to split up the string
if( $ref = explode('/', $_SERVER['HTTP_REFERER']) ) {
- if( $ref[0] == 'http:' && $ref[2] != $_SERVER['HTTP_HOST'] ) {
+ if( $ref[2] != $_SERVER['HTTP_HOST'] ) {
// we have a standard refering URL
if( empty( $_COOKIE['referer_url'] ) ) {
setcookie( 'referer_url', $_SERVER['HTTP_REFERER'], time()+60*60*24*180, $gBitSystem->getConfig( 'cookie_path', BIT_ROOT_URL ), $gBitSystem->getConfig( 'cookie_domain', '' ));