diff options
author | alecpl <alec@alec.pl> | 2009-06-01 08:20:10 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-06-01 08:20:10 +0000 |
commit | 0ce119869d77215665be6850099cc229b5720963 (patch) | |
tree | 3f102092e5c825ee4da5c3f195d06a747ee9f168 /installer/rcube_install.php | |
parent | 977078372e5183cfc0f0175a211b34e8c6b53583 (diff) |
- use preg functions instead of ereg functions
Diffstat (limited to 'installer/rcube_install.php')
-rw-r--r-- | 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 89ebe9d89..05046879e 100644 --- a/installer/rcube_install.php +++ b/installer/rcube_install.php @@ -551,11 +551,11 @@ class rcube_install 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()) |