Changeset 4036
- Timestamp:
- Oct 14, 2009, 6:13:25 PM (15 years ago)
- Location:
- branches/2.0
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/include/functions_user.inc.php
r4035 r4036 76 76 array_push($errors, l10n('reg_err_login1')); 77 77 } 78 if (preg_match( "/^.* $/", $login))78 if (preg_match('/^.* $/', $login)) 79 79 { 80 80 array_push($errors, l10n('reg_err_login2')); 81 81 } 82 if (preg_match( "/^ .*$/", $login))82 if (preg_match('/^ .*$/', $login)) 83 83 { 84 84 array_push($errors, l10n('reg_err_login3')); -
branches/2.0/tools/create_listing_file.php
r3196 r4036 204 204 205 205 // Backup GD major version 206 $pwg_conf['gd_version_full'] = ereg_replace('[[:alpha:][:space:]()]+', '', $info['GD Version']);206 $pwg_conf['gd_version_full'] = preg_replace('/[[:alpha:][:space:]()]+/', '', $info['GD Version']); 207 207 list($pwg_conf['gd_version_major']) = preg_split('/[.]+/', $pwg_conf['gd_version_full']); 208 208 … … 1088 1088 { 1089 1089 $info = gd_info(); 1090 $gd_full_version = ereg_replace('[[:alpha:][:space:]()]+', '', $info['GD Version']);1090 $gd_full_version = preg_replace('/[[:alpha:][:space:]()]+/', '', $info['GD Version']); 1091 1091 list($gd_version) = preg_split('/[.]+/', $gd_full_version); 1092 1092 -
branches/2.0/upload.php
r3046 r4036 189 189 array_push( $error, l10n('upload_filenotfound') ); 190 190 } 191 if ( ! ereg( "([_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+)",191 if ( !preg_match( '/([_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+)/', 192 192 $_POST['mail_address'] ) ) 193 193 {
Note: See TracChangeset
for help on using the changeset viewer.