Ignore:
Timestamp:
Oct 14, 2009, 5:06:36 PM (15 years ago)
Author:
patdenice
Message:

Replace some ereg function (depreciated) by preg_match.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/admin/thumbnail.php

    r3270 r4035  
    232232 
    233233  // 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)
    235235  {
    236236    array_push($page['errors'], l10n('tn_err_width').' 10');
    237237  }
    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)
    239239  {
    240240    array_push($page['errors'], l10n('tn_err_height').' 10');
Note: See TracChangeset for help on using the changeset viewer.