Title: Bug Report v12.3
Last modified: December 1, 2017

---

# Bug Report v12.3

 *  Resolved [boyizmen](https://wordpress.org/support/users/boyizmen/)
 * (@boyizmen)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bug-report-v12-3/)
 * It may got a wrong logical judgment in file class-wp-statistics.php,
    here’s 
   the source code:
 *     ```
       	public function get_referrer_link( $referrer, $length = -1 ) {
       		$html_referrer = $this->html_sanitize_referrer($referrer);
   
       		if ( $length > 0 && strlen($referrer) > $length ) {
       			$html_referrer_limited = $this->html_sanitize_referrer($referrer, $length);
       			$eplises               = '[...]';
       		} else {
       			$html_referrer_limited = $html_referrer;
       			$eplises               = '';
       		}
   
       		if ( substr($html_referrer, 0, 7) !== 'http://' or substr($html_referrer, 0, 8) !== 'https://' ) {
       			// non relative address
       			$html_nr_referrer = 'http://' . $html_referrer;
       		} else {
       			$html_nr_referrer = $html_referrer;
       		}
   
       		return "<a href='{$html_nr_referrer}'><div class='dashicons dashicons-admin-links'></div>{$html_referrer_limited}{$eplises}</a>";
       	}
       ```
   
 * you may use ‘and’ in `if ( substr($html_referrer, 0, 7) !== 'http://' or substr(
   $html_referrer, 0, 8) !== 'https://' )` not or
    And I suggest you use ‘//’ not‘
   [http://&#8217](http://&#8217); to join the url.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Mostafa Soufi](https://wordpress.org/support/users/mostafas1990/)
 * (@mostafas1990)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bug-report-v12-3/#post-9742355)
 * Hi,
 * Thank you for suggesting, Can you send this change from pull request on the [Github](https://github.com/wp-statistics/wp-statistics)?
 *  Thread Starter [boyizmen](https://wordpress.org/support/users/boyizmen/)
 * (@boyizmen)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bug-report-v12-3/#post-9742878)
 * I’ve send a new pull request. Please check and merge it to the master
 *  [DediData](https://wordpress.org/support/users/dedidata/)
 * (@dedidata)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bug-report-v12-3/#post-9743444)
 * Hi,
 * Thank you for your report and commit

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Bug Report v12.3’ is closed to new replies.

 * ![](https://ps.w.org/wp-statistics/assets/icon.svg?rev=3081064)
 * [WP Statistics – Simple, privacy-friendly Google Analytics alternative](https://wordpress.org/plugins/wp-statistics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-statistics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-statistics/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-statistics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-statistics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-statistics/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [DediData](https://wordpress.org/support/users/dedidata/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/bug-report-v12-3/#post-9743444)
 * Status: resolved