Skip to content

Commit 6a06aa8

Browse files
authored
Merge pull request #740 from alacn1/fix_sanitize_style
Add style element to qa_sanitize_html()
2 parents 1cb97a5 + 71ba713 commit 6a06aa8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

qa-include/qa-base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ function qa_sanitize_html($html, $linksnewwindow = false, $storage = false)
10241024

10251025
$safe = htmLawed($html, array(
10261026
'safe' => 1,
1027-
'elements' => '*-form',
1027+
'elements' => '*-form-style',
10281028
'schemes' => 'href: aim, feed, file, ftp, gopher, http, https, irc, mailto, news, nntp, sftp, ssh, telnet; *:file, http, https; style: !; classid:clsid',
10291029
'keep_bad' => 0,
10301030
'anti_link_spam' => array('/.*/', ''),

0 commit comments

Comments
 (0)