Skip to content

Commit 081338b

Browse files
committed
Forbid javascript scheme
1 parent b4ed40a commit 081338b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

inc/html.class.php

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ static function clean($value, $striptags = true, $keep_bad = 2) {
9191
'comment' => 1, // 1: remove
9292
'cdata' => 1, // 1: remove
9393
'direct_list_nest' => 1, // 1: Allow usage of ul/ol tags nested in other ul/ol tags
94+
'schemes' => 'aim, app, feed, file, ftp, gopher, http, https, !javascript, irc, mailto, news, nntp, sftp, ssh, tel, telnet'
9495
]
9596
);
9697

0 commit comments

Comments
 (0)