diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php index 383674cfb..bc3efed9e 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 (preg_match("/^.* $/", $login)) + if (preg_match('/^.* $/', $login)) { array_push($errors, l10n('reg_err_login2')); } - if (preg_match("/^ .*$/", $login)) + if (preg_match('/^ .*$/', $login)) { array_push($errors, l10n('reg_err_login3')); } diff --git a/tools/create_listing_file.php b/tools/create_listing_file.php index 13fb057ab..f4ca4f8fe 100644 --- a/tools/create_listing_file.php +++ b/tools/create_listing_file.php @@ -203,7 +203,7 @@ function pwg_check_graphics() $info = gd_info(); // Backup GD major version - $pwg_conf['gd_version_full'] = ereg_replace('[[:alpha:][:space:]()]+', '', $info['GD Version']); + $pwg_conf['gd_version_full'] = preg_replace('/[[:alpha:][:space:]()]+/', '', $info['GD Version']); list($pwg_conf['gd_version_major']) = preg_split('/[.]+/', $pwg_conf['gd_version_full']); // Backup input/output format support @@ -1087,7 +1087,7 @@ function pwg_test_exit() else { $info = gd_info(); - $gd_full_version = ereg_replace('[[:alpha:][:space:]()]+', '', $info['GD Version']); + $gd_full_version = preg_replace('/[[:alpha:][:space:]()]+/', '', $info['GD Version']); list($gd_version) = preg_split('/[.]+/', $gd_full_version); $g_message .= '