Ignore:
Timestamp:
Aug 17, 2009, 6:21:09 PM (15 years ago)
Author:
Eric
Message:

PHP 5.3 compatibility - Deprecated functions were replace as follows :
ereg() -> preg_match()
ereg_replace() -> preg_replace()
eregi() -> preg_match() with the 'i' modifier
eregi_replace() -> preg_replace() with the 'i' modifier
set_magic_quotes_runtime() -> No more usefull. Fixed it by adding "@" prefix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_user.inc.php

    r3642 r3747  
    7676    array_push($errors, l10n('reg_err_login1'));
    7777  }
    78   if (ereg("^.* $", $login))
     78  if (preg_match('/^.* $/', $login))
    7979  {
    8080    array_push($errors, l10n('reg_err_login2'));
    8181  }
    82   if (ereg("^ .*$", $login))
     82  if (preg_match('/^ .*$/', $login))
    8383  {
    8484    array_push($errors, l10n('reg_err_login3'));
Note: See TracChangeset for help on using the changeset viewer.