diff options
author | patdenice <patdenice@piwigo.org> | 2009-10-14 15:06:36 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2009-10-14 15:06:36 +0000 |
commit | 246634cb72fdd3c9e0b9f67be2bb9e7fe12aabee (patch) | |
tree | b19bdf9f9ac724edd9b969facecdd6925cd98e6a /admin/thumbnail.php | |
parent | 916fa5ea70737968d7bb6c41b21c470bc280838c (diff) |
Replace some ereg function (depreciated) by preg_match.
git-svn-id: http://piwigo.org/svn/branches/2.0@4035 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/thumbnail.php')
-rw-r--r-- | admin/thumbnail.php | 4 |
1 files changed, 2 insertions, 2 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'); } |