Skip to content

Commit

Permalink
Updated html_attr() to not match mailto|tel|about etc
Browse files Browse the repository at this point in the history
  • Loading branch information
webaddicto authored May 6, 2017
1 parent de75904 commit 10330b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Plugin/ProxifyPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private function html_attr($matches){
// could be empty?
$url = trim($matches[2]);

if(stripos($url, 'data:') === 0 || stripos($url, 'magnet:') === 0 ){
if(stripos($url, 'data:') === 0 || stripos($url, 'magnet:') === 0 || stripos($url, 'about:') === 0 || stripos($url, 'javascript:') === 0 || stripos($url, 'mailto:') === 0 || stripos($url, 'tel:') === 0 || stripos($url, 'ios-app:') === 0 || stripos($url, 'android-app:') === 0){
return $matches[0];
}

Expand Down Expand Up @@ -182,4 +182,4 @@ public function onCompleted(ProxyEvent $event){

}

?>
?>

0 comments on commit 10330b5

Please sign in to comment.