Skip to content

Commit

Permalink
Merge pull request #58 from webaddicto/patch-9
Browse files Browse the repository at this point in the history
Updated html_attr() to not match mailto|tel|about etc
  • Loading branch information
Athlon1600 authored Dec 23, 2017
2 parents 8d2c953 + 10330b5 commit b104ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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

0 comments on commit b104ec0

Please sign in to comment.