Skip to content
Snippets Groups Projects

Fixes #1220 XSS vulnerability is addressed

Merged Uma requested to merge uma.s/vtigercrm:xss_vulnerability_on_ckeditor into master
+ 3
16
Compare changes
  • Side-by-side
  • Inline
Files
@@ -675,9 +675,9 @@ function decode_html($str) {
global $default_charset;
// Direct Popup action or Ajax Popup action should be treated the same.
if ((isset($_REQUEST['action']) && $_REQUEST['action'] == 'Popup') || (isset($_REQUEST['file']) && $_REQUEST['file'] == 'Popup'))
return html_entity_decode($str);
return purifyHtmlEventAttributes(html_entity_decode($str));
else
return html_entity_decode($str, ENT_QUOTES, $default_charset);
return purifyHtmlEventAttributes(html_entity_decode($str, ENT_QUOTES, $default_charset));
}
function popup_decode_html($str) {
Loading