From 23a2eec4d540b5f971ed6377e7ad776456ee0633 Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 4 May 2009 08:31:55 +0000 Subject: - ereg -> preg --- program/include/rcube_html_page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/include/rcube_html_page.php') diff --git a/program/include/rcube_html_page.php b/program/include/rcube_html_page.php index c83c6aeea..b8db7b37a 100644 --- a/program/include/rcube_html_page.php +++ b/program/include/rcube_html_page.php @@ -54,7 +54,7 @@ class rcube_html_page { static $sa_files = array(); - if (!ereg('^https?://', $file) && $file[0] != '/') + if (!preg_match('|^https?://|i', $file) && $file[0] != '/') $file = $this->scripts_path . $file; if (in_array($file, $sa_files)) { -- cgit v1.2.3