Skip to content

Commit 10330b5

Browse files
authored
Updated html_attr() to not match mailto|tel|about etc
1 parent de75904 commit 10330b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Plugin/ProxifyPlugin.php

Lines changed: 2 additions & 2 deletions
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

@@ -182,4 +182,4 @@ public function onCompleted(ProxyEvent $event){
182182

183183
}
184184

185-
?>
185+
?>

0 commit comments

Comments
 (0)