Changeset 79357 in spip-zone


Ignore:
Timestamp:
Dec 14, 2013, 11:57:16 AM (6 years ago)
Author:
brunobergot@…
Message:

Report de r79356 / Fix http://core.spip.org/issues/3117 : ne pas toucher aux attributs des balises a

Location:
_core_/branches/spip-3.0/plugins/safehtml
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _core_/branches/spip-3.0/plugins/safehtml/lib/safehtml/classes/safehtml.php

    r74443 r79357  
    110110 }
    111111
    112  function _writeAttrs ($attrs)
     112 function _writeAttrs ($attrs,$tag=null)
    113113 {
    114114  if (is_array($attrs)) {
     
    123123     continue;
    124124    }
    125     if (in_array($name, $this->attributes)) {
     125    if ($tag !='a' AND in_array($name, $this->attributes)) {
    126126     continue;
    127127    }
     
    250250   
    251251  $this->_xhtml .= '<' . $name;
    252   $this->_writeAttrs($attrs);
     252  $this->_writeAttrs($attrs,$name);
    253253  $this->_xhtml .= '>';
    254254  array_push($this->_stack,$name);
  • _core_/branches/spip-3.0/plugins/safehtml/paquet.xml

    r63516 r79357  
    22        prefix="safehtml"
    33        categorie="performance"
    4         version="1.4.0"
     4        version="1.4.1"
    55        etat="stable"
    66        compatibilite="[3.0.0;3.0.*]"
Note: See TracChangeset for help on using the changeset viewer.