Changeset 43375 in spip-zone


Ignore:
Timestamp:
Jan 7, 2011, 3:20:18 PM (10 years ago)
Author:
cedric@…
Message:

la suppression des declarations vide n'etait pas assez prudente et entrainant quelques troncature de selecteur mal a propos ! (Nicolas Hoizey)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/branches/spip-2.1/plugins/compresseur/inc/compresseur.php

    r42398 r43375  
    2020        $contenu = preg_replace(";([:\s,(])#([0-9a-f])(\\2)([0-9a-f])(\\4)([0-9a-f])(\\6)(?=[^\w\-]);i","$1#$2$4$6",$contenu);
    2121        // supprimer les declarations vides
    22         $contenu = preg_replace(",\s([^{}]*){},Ums"," ",$contenu);
     22        $contenu = preg_replace(",(^|})([^{}]*){},Ums","$1",$contenu);
    2323        $contenu = trim($contenu);
    2424
Note: See TracChangeset for help on using the changeset viewer.