diff --git a/include/class.format.php b/include/class.format.php index e8f4a7c54b..30442e7467 100644 --- a/include/class.format.php +++ b/include/class.format.php @@ -341,7 +341,7 @@ function safe_html($html, $options=array()) { $config['elements'] = '*+iframe'; $config['spec'] = 'iframe=-*,height,width,type,style,src(match="`^(https?:)?//(www\.)?(' .implode('|', $whitelist) - .')/?`i"),frameborder'.($options['spec'] ? '; '.$options['spec'] : '').',allowfullscreen'; + .')/?([^@]*)$`i"),frameborder'.($options['spec'] ? '; '.$options['spec'] : '').',allowfullscreen'; } return Format::html($html, $config);