Projet

Général

Profil

Révision dd54aff9

Ajouté par Assos Assos il y a plus de 10 ans

Weekly update of contrib modules

Voir les différences:

htmltest/sites/all/modules/ldap/ldap_servers/ldap_servers.functions.inc
377 377
    * @author beni@php.net, heavily based on work from DavidSmith@byu.net
378 378
    * @return string
379 379
    */
380

  
380 381
    function ldap_pear_hex2asc($string) {
381
        $string = preg_replace("/\\\([0-9A-Fa-f]{2})/e", "''.chr(hexdec('\\1')).''", $string);
382
        $string = preg_replace_callback(
383
          "/\\\([0-9A-Fa-f]{2})/",
384
          function ($m){
385
            return chr(hexdec($m[1]));
386
          },
387
          $string);
388

  
382 389
        return $string;
383 390
    }
384 391

  

Formats disponibles : Unified diff