Changeset 79356 in spip-zone


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

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

Location:
_core_/plugins/safehtml
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/safehtml/lib/safehtml/classes/safehtml.php

    r77975 r79356  
    114114 }
    115115
    116  function _writeAttrs ($attrs)
     116 function _writeAttrs ($attrs,$tag=null)
    117117 {
    118118  if (is_array($attrs)) {
     
    127127     continue;
    128128    }
    129     if (in_array($name, $this->attributes)) {
     129    if ($tag !='a' AND in_array($name, $this->attributes)) {
    130130     continue;
    131131    }
     
    256256   
    257257  $this->_xhtml .= '<' . $name;
    258   $this->_writeAttrs($attrs);
     258  $this->_writeAttrs($attrs,$name);
    259259  $this->_xhtml .= '>';
    260260  array_push($this->_stack,$name);
  • _core_/plugins/safehtml/paquet.xml

    r61426 r79356  
    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.1.*]"
Note: See TracChangeset for help on using the changeset viewer.