From db5abc6c211d78ad80b716ddef11eabe5e32f137 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 04 May 2009 04:03:48 -0400
Subject: [PATCH] - ereg -> preg

---
 program/lib/icl_commons.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/program/lib/icl_commons.inc b/program/lib/icl_commons.inc
index 5992051..87eed62 100644
--- a/program/lib/icl_commons.inc
+++ b/program/lib/icl_commons.inc
@@ -48,8 +48,8 @@
 }
 
 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);
 

--
Gitblit v1.9.1