From 27924acf437df92c4e6e88e79bd28a58e6ea4aaa Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Wed, 13 May 2009 03:17:33 -0400
Subject: [PATCH] - speed up the whole session cleaning in kill_session()

---
 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 c83c6ae..b8db7b3 100644
--- a/program/include/rcube_html_page.php
+++ b/program/include/rcube_html_page.php
@@ -54,7 +54,7 @@
     {
         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)) {

--
Gitblit v1.9.1