Changeset 29245 for trunk/admin/batch_manager.php
- Timestamp:
- Aug 22, 2014, 11:09:17 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/batch_manager.php
r29244 r29245 132 132 foreach (array('min_width','max_width','min_height','max_height') as $type) 133 133 { 134 if ( preg_match('#^[0-9]+$#', $_POST['filter_dimension_'. $type ]))134 if (filter_var($_POST['filter_dimension_'.$type], FILTER_VALIDATE_INT) !== false) 135 135 { 136 136 $_SESSION['bulk_manager_filter']['dimension'][$type] = $_POST['filter_dimension_'. $type ]; … … 139 139 foreach (array('min_ratio','max_ratio') as $type) 140 140 { 141 if ( preg_match('#^[0-9\.]+$#', $_POST['filter_dimension_'. $type ]))141 if (filter_var($_POST['filter_dimension_'.$type], FILTER_VALIDATE_FLOAT) !== false) 142 142 { 143 143 $_SESSION['bulk_manager_filter']['dimension'][$type] = $_POST['filter_dimension_'. $type ]; … … 150 150 foreach (array('min','max') as $type) 151 151 { 152 if ( preg_match('#^[0-9\.]+$#', $_POST['filter_filesize_'. $type ]))152 if (filter_var($_POST['filter_filesize_'.$type], FILTER_VALIDATE_FLOAT) !== false) 153 153 { 154 154 $_SESSION['bulk_manager_filter']['filesize'][$type] = $_POST['filter_filesize_'. $type ];
Note: See TracChangeset
for help on using the changeset viewer.