Changeset 4035 for branches/2.0/admin
- Timestamp:
- Oct 14, 2009, 5:06:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/admin/thumbnail.php
r3270 r4035 232 232 233 233 // checking criteria 234 if (! ereg('^[0-9]{2,3}$', $_POST['width']) or $_POST['width'] < 10)234 if (!preg_match('/^[0-9]{2,3}$/', $_POST['width']) or $_POST['width'] < 10) 235 235 { 236 236 array_push($page['errors'], l10n('tn_err_width').' 10'); 237 237 } 238 if (! ereg('^[0-9]{2,3}$', $_POST['height']) or $_POST['height'] < 10)238 if (!preg_match('/^[0-9]{2,3}$/', $_POST['height']) or $_POST['height'] < 10) 239 239 { 240 240 array_push($page['errors'], l10n('tn_err_height').' 10');
Note: See TracChangeset
for help on using the changeset viewer.