summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php2
-rw-r--r--installer/rcube_install.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index 0904f2be6..5d37a93e0 100644
--- a/index.php
+++ b/index.php
@@ -221,7 +221,7 @@ while ($redirects < 5) {
$action_map[$RCMAIL->task][$RCMAIL->action] : strtr($RCMAIL->action, '-', '_') . '.inc';
// execute a plugin action
- if (eregi('^plugin.', $RCMAIL->action)) {
+ if (preg_match('/^plugin\./', $RCMAIL->action)) {
$RCMAIL->plugins->exec_action($RCMAIL->action);
break;
}
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())