- Timestamp:
- Jan 26, 2010, 10:13:37 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/search.php
r3046 r4752 36 36 if (isset($_POST['submit'])) 37 37 { 38 foreach ($_POST as $post_key => $post_value) 39 { 40 if (!is_array($post_value)) 41 { 42 $_POST[$post_key] = mysql_real_escape_string($post_value); 43 } 44 } 45 38 46 if (isset($_POST['search_allwords']) 39 47 and !preg_match('/^\s*$/', $_POST['search_allwords'])) … … 64 72 if (isset($_POST['tags'])) 65 73 { 74 check_input_parameter('tags', $_POST['tags'], true, PATTERN_ID); 75 66 76 $search['fields']['tags'] = array( 67 77 'words' => $_POST['tags'], … … 83 93 if (isset($_POST['cat'])) 84 94 { 95 check_input_parameter('cat', $_POST['cat'], true, PATTERN_ID); 96 85 97 $search['fields']['cat'] = array( 86 98 'words' => $_POST['cat'],
Note: See TracChangeset
for help on using the changeset viewer.