Skip to content

Commit

Permalink
use strict comparison for self linking check
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael committed Apr 22, 2015
1 parent 175e55d commit 563188b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/sitelink.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function hyperlink(&$operatorValue=false, $host=false){
}
if($urlComponents['query']){$operatorValue.='?'.$urlComponents['query'];}
if($urlComponents['fragment']){$operatorValue.='#'.$urlComponents['fragment'];}
if($this->classSettings&&isset($this->classSettings['SelfLinking'])&&$this->classSettings['SelfLinking']=='disabled'){
if($this->classSettings&&isset($this->classSettings['SelfLinking'])&&$this->classSettings['SelfLinking']==='disabled'){
if(strripos(str_replace($urlComponents['scheme'].':https://'.$urlComponents['host'],'',$operatorValue),'/'.$this->objectNode->urlAlias())===0 && (!$urlComponents['host'] || $this->currentHost==$urlComponents['host'])){$operatorValue='';}
}
}
Expand Down

0 comments on commit 563188b

Please sign in to comment.