diff options
Diffstat (limited to 'it_html.class')
-rw-r--r-- | it_html.class | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/it_html.class b/it_html.class index 5175f2d..913d018 100644 --- a/it_html.class +++ b/it_html.class @@ -516,11 +516,9 @@ static function U(...$args) ($u['host'] ? $u['host'] : "") . ($u['port'] ? ":" . intval($u['port']) : ""); + # Remove unsupported javascript: scheme as it leads to security problems if (it::match('javascript', $u['scheme'])) - { - it::error(['title' => "Invalid URL scheme javascript", 'body' => ['args' => $args, 'u' => $u]]); # FIXME CS 2022-03-01 Remove warning on javascript urls $u['scheme'] = ''; - } $schemepart = $hostpart ? ($u['scheme'] ? $u['scheme'] . ":" : "") . "//$hostpart" : ($u['scheme'] == "mailto" ? $u['scheme'] . ":" : ""); |