summaryrefslogtreecommitdiff
path: root/roundcubemail/program/lib/icl_commons.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-05-04 08:03:48 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-05-04 08:03:48 +0000
commita4e2b2d1cf9be820bd3dbb7bb90cb88cd6fd7834 (patch)
tree3a51f7ee33f2d1fdea644f2ad98fa23a112b146c /roundcubemail/program/lib/icl_commons.inc
parent7c5d07dbc7018121d5f1cca47f7477c00bf009d4 (diff)
- ereg -> preg
git-svn-id: https://svn.roundcube.net/trunk@2452 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/lib/icl_commons.inc')
-rw-r--r--roundcubemail/program/lib/icl_commons.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/lib/icl_commons.inc b/roundcubemail/program/lib/icl_commons.inc
index 599205178..87eed629f 100644
--- a/roundcubemail/program/lib/icl_commons.inc
+++ b/roundcubemail/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);