aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/thumbnail.php4
-rw-r--r--include/functions_user.inc.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/admin/thumbnail.php b/admin/thumbnail.php
index 3034e8478..0fd72242f 100644
--- a/admin/thumbnail.php
+++ b/admin/thumbnail.php
@@ -231,11 +231,11 @@ if (isset($_POST['submit']))
$infos = array();
// checking criteria
- if (!ereg('^[0-9]{2,3}$', $_POST['width']) or $_POST['width'] < 10)
+ if (!preg_match('/^[0-9]{2,3}$/', $_POST['width']) or $_POST['width'] < 10)
{
array_push($page['errors'], l10n('tn_err_width').' 10');
}
- if (!ereg('^[0-9]{2,3}$', $_POST['height']) or $_POST['height'] < 10)
+ if (!preg_match('/^[0-9]{2,3}$/', $_POST['height']) or $_POST['height'] < 10)
{
array_push($page['errors'], l10n('tn_err_height').' 10');
}
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index a8515a6a7..383674cfb 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -75,11 +75,11 @@ function register_user($login, $password, $mail_address,
{
array_push($errors, l10n('reg_err_login1'));
}
- if (ereg("^.* $", $login))
+ if (preg_match("/^.* $/", $login))
{
array_push($errors, l10n('reg_err_login2'));
}
- if (ereg("^ .*$", $login))
+ if (preg_match("/^ .*$/", $login))
{
array_push($errors, l10n('reg_err_login3'));
}