mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
webui: Allow iframe in notes widget (#6773)
* webui: Allow iframe in notes widget * added height+width to notes widget
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user