Skip to content
Browse files

- use preg functions instead of ereg functions

  • Loading branch information...
1 parent 9770783 commit 0ce119869d77215665be6850099cc229b5720963 @alecpl alecpl committed Jun 1, 2009
Showing with 3 additions and 3 deletions.
  1. +1 −1 index.php
  2. +2 −2 installer/rcube_install.php
View
2 index.php
@@ -221,7 +221,7 @@
$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;
}
View
4 installer/rcube_install.php
@@ -551,11 +551,11 @@ function init_db($DB)
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())

0 comments on commit 0ce1198

Please sign in to comment.
Something went wrong with that request. Please try again.