Changeset 112156 in spip-zone


Ignore:
Timestamp:
Oct 24, 2018, 5:58:18 PM (11 months ago)
Author:
gouz@…
Message:

suppression de code inutile et de warning PHP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/htmlpurifier/inc/safehtml.php

    r112152 r112156  
    3535        $config->set('Cache.SerializerPath', preg_replace(',/$,', '', realpath(_DIR_TMP)));
    3636        $config->set('Attr.AllowedFrameTargets', array('_blank'));
    37   $config->set('Attr', 'AllowedRel', 'facebox,nofollow,print,external');
     37        $config->set('Attr.AllowedRel', 'facebox,nofollow,print,external');
    3838 
    3939        $config->set('URI.AllowedSchemes', array ('http' => true, 'https' => true, 'mailto' => true, 'ftp' => true, 'nntp' => true, 'news' => true, 'tel' => true, 'tcp'=>true, 'udp'=>true, 'ssh'=>true,));
    40         HTMLPurifier_URISchemeRegistry::instance()->register(new HTMLPurifier_URIScheme_tcp, $config);
    41         HTMLPurifier_URISchemeRegistry::instance()->register(new HTMLPurifier_URIScheme_udp, $config);
    42         HTMLPurifier_URISchemeRegistry::instance()->register(new HTMLPurifier_URIScheme_ssh, $config);
    4340       
    4441        $html = $config->getHTMLDefinition(true);
Note: See TracChangeset for help on using the changeset viewer.