webui: Allow iframe in notes widget (#6773)

* webui: Allow iframe in notes widget

* added height+width to notes widget
This commit is contained in:
Neil Lathwood
2017-06-03 17:14:16 +01:00
committed by GitHub
parent c8e3738fbb
commit 3fbdc749e0

View File

@@ -35,9 +35,13 @@ if (defined('SHOW_SETTINGS') || empty($widget_settings)) {
} else {
$tmp_config = array(
'HTML.Allowed' => 'b,iframe,i,ul,li,h1,h2,h3,h4,br,p',
'HTML.AllowedAttributes' => 'iframe@src,iframe@width,iframe@height',
'HTML.AllowedElements' => array('iframe'),
'HTML.Trusted' => true,
'HTML.SafeIframe' => true,
'URI.SafeIframeRegexp' => '%^(https?:)?//%',
);
$common_output[] = display(nl2br($widget_settings['notes']), $tmp_config);
//print_r($common_output);exit;
unset($tmp_config);
}