Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 3b97dedfbd38fd1e8aebd40c1f8f44b822ce8918 1 parent d04b3d5
@danpoltawski danpoltawski authored stronk7 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/weblib.php
View
2  lib/weblib.php
@@ -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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.