summaryrefslogtreecommitdiff
path: root/program/lib/icl_commons.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-05-04 08:03:48 +0000
committeralecpl <alec@alec.pl>2009-05-04 08:03:48 +0000
commitdb5abc6c211d78ad80b716ddef11eabe5e32f137 (patch)
tree2a85daf1cbce05e8787f0f7af38110843821cf66 /program/lib/icl_commons.inc
parent2f7405e3cec2dba156fe80ca0b041a218528562e (diff)
- ereg -> preg
Diffstat (limited to 'program/lib/icl_commons.inc')
-rw-r--r--program/lib/icl_commons.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/icl_commons.inc b/program/lib/icl_commons.inc
index 599205178..87eed629f 100644
--- a/program/lib/icl_commons.inc
+++ b/program/lib/icl_commons.inc
@@ -48,8 +48,8 @@ function iil_utf7_decode($str, $raw=false){
}
function iil_utf7_encode($str){
- if (!ereg("[\200-\237]",$str) && !ereg("[\241-\377]",$str))
- return $str;
+ if (!preg_match('/[\200-\237\241-\377]/', $str))
+ return $str;
$len = strlen($str);