Permalink
Browse files

MDL-28059 weblib - don't strip mailto: anchors

  • Loading branch information...
1 parent 2bdfe77 commit c8e7fdd9aff8effcfb939648e54c0c134c882f1a @danpoltawski danpoltawski committed with stronk7 Aug 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/weblib.php
View
@@ -1528,7 +1528,7 @@ function purify_html($text, $options = array()) {
$config->set('Core.ConvertDocumentToFragment', true);
$config->set('Core.Encoding', 'UTF-8');
$config->set('HTML.Doctype', 'XHTML 1.0 Transitional');
- $config->set('URI.AllowedSchemes', array('http'=>true, 'https'=>true, 'ftp'=>true, 'irc'=>true, 'nntp'=>true, 'news'=>true, 'rtsp'=>true, 'teamspeak'=>true, 'gopher'=>true, 'mms'=>true));
+ $config->set('URI.AllowedSchemes', array('http'=>true, 'https'=>true, 'ftp'=>true, 'irc'=>true, 'nntp'=>true, 'news'=>true, 'rtsp'=>true, 'teamspeak'=>true, 'gopher'=>true, 'mms'=>true, 'mailto'=>true));
$config->set('Attr.AllowedFrameTargets', array('_blank'));
if (!empty($CFG->allowobjectembed)) {

0 comments on commit c8e7fdd

Please sign in to comment.