From d6aa7800a1a7fcaadaeb77cc4a1f0be36007d301 Mon Sep 17 00:00:00 2001 From: turon Date: Mon, 8 Feb 2016 10:10:23 -0500 Subject: remove http: check in referrer link --- bit_setup_inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', '' )); -- cgit v1.3