diff options
Diffstat (limited to 'program/include/rcube_html_page.php')
-rw-r--r-- | program/include/rcube_html_page.php | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |