From 0ce119869d77215665be6850099cc229b5720963 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Mon, 01 Jun 2009 04:20:10 -0400 Subject: [PATCH] - use preg functions instead of ereg functions --- installer/rcube_install.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/rcube_install.php b/installer/rcube_install.php index 89ebe9d..0504687 100644 --- a/installer/rcube_install.php +++ b/installer/rcube_install.php @@ -551,11 +551,11 @@ if ($lines = @file($fname, FILE_SKIP_EMPTY_LINES)) { $buff = ''; foreach ($lines as $i => $line) { - if (eregi('^--', $line)) + if (preg_match('/^--/', $line)) continue; $buff .= $line . "\n"; - if (eregi(';$', trim($line))) { + if (preg_match('/;$/', trim($line))) { $DB->query($buff); $buff = ''; if ($this->get_error()) -- Gitblit v1.9.1