Ignore:
Timestamp:
Oct 14, 2009, 5:06:36 PM (15 years ago)
Author:
patdenice
Message:

Replace some ereg function (depreciated) by preg_match.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/include/functions_user.inc.php

    r3643 r4035  
    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.