Changeset 22888


Ignore:
Timestamp:
2013/06/24 17:05:41 (7 years ago)
Author:
kimoto
Message:

#2275 PHP5.5対応
mb_eregをpregに変更

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/util/SC_Utils.php

    r22856 r22888  
    669669    function sfTrim($str) 
    670670    { 
    671         $ret = mb_ereg_replace("^[  \n\r]*", '', $str); 
    672         $ret = mb_ereg_replace("[  \n\r]*$", '', $ret); 
    673  
     671        $ret = preg_replace("/^[  \n\r]*/u", '', $str); 
     672        $ret = preg_replace("/[  \n\r]*$/u", '', $ret); 
    674673        return $ret; 
    675674    } 
Note: See TracChangeset for help on using the changeset viewer.