aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/common.inc.php2
-rw-r--r--include/functions_user.inc.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/common.inc.php b/include/common.inc.php
index 448d28ae1..925855a19 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -28,7 +28,7 @@ $t1 = explode( ' ', microtime() );
$t2 = explode( '.', $t1[0] );
$t2 = $t1[1].'.'.$t2[1];
-set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
+@set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
//
// addslashes to vars if magic_quotes_gpc is off this is a security
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index 3ead0e820..98a417ecb 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'));
}