Skip to content

Commit b104ec0

Browse files
authored
Merge pull request #58 from webaddicto/patch-9
Updated html_attr() to not match mailto|tel|about etc
2 parents 8d2c953 + 10330b5 commit b104ec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Plugin/ProxifyPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ private function html_attr($matches){
3333
// could be empty?
3434
$url = trim($matches[2]);
3535

36-
if(stripos($url, 'data:') === 0 || stripos($url, 'magnet:') === 0 ){
36+
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){
3737
return $matches[0];
3838
}
3939

0 commit comments

Comments
 (0)