Unverified Commit 6a06aa8f by Scott Committed by GitHub

Merge pull request #740 from alacn1/fix_sanitize_style

Add style element to qa_sanitize_html()
parents 1cb97a52 71ba7130
...@@ -1024,7 +1024,7 @@ function qa_sanitize_html($html, $linksnewwindow = false, $storage = false) ...@@ -1024,7 +1024,7 @@ function qa_sanitize_html($html, $linksnewwindow = false, $storage = false)
$safe = htmLawed($html, array( $safe = htmLawed($html, array(
'safe' => 1, 'safe' => 1,
'elements' => '*-form', 'elements' => '*-form-style',
'schemes' => 'href: aim, feed, file, ftp, gopher, http, https, irc, mailto, news, nntp, sftp, ssh, telnet; *:file, http, https; style: !; classid:clsid', 'schemes' => 'href: aim, feed, file, ftp, gopher, http, https, irc, mailto, news, nntp, sftp, ssh, telnet; *:file, http, https; style: !; classid:clsid',
'keep_bad' => 0, 'keep_bad' => 0,
'anti_link_spam' => array('/.*/', ''), 'anti_link_spam' => array('/.*/', ''),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment