Changeset 26825
- Timestamp:
- Jan 17, 2014, 1:50:14 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_search.inc.php
r26649 r26825 114 114 ); 115 115 116 // make sure the "mode" is either OR or AND 117 if ($search['fields']['allwords']['mode'] != 'AND' and $search['fields']['allwords']['mode'] != 'OR') 118 { 119 $search['fields']['allwords']['mode'] = 'AND'; 120 } 121 116 122 $clauses[] = "\n ". 117 123 implode( -
trunk/search.php
r26461 r26825 48 48 and !preg_match('/^\s*$/', $_POST['search_allwords'])) 49 49 { 50 check_input_parameter('mode', $_POST, false, '/^(OR|AND)$/'); 51 50 52 $drop_char_match = array( 51 53 '-','^','$',';','#','&','(',')','<','>','`','\'','"','|',',','@','_', … … 74 76 { 75 77 check_input_parameter('tags', $_POST, true, PATTERN_ID); 78 check_input_parameter('tag_mode', $_POST, false, '/^(OR|AND)$/'); 76 79 77 80 $search['fields']['tags'] = array( … … 86 89 'words' => preg_split( 87 90 '/\s+/', 88 $_POST['search_author']91 strip_tags($_POST['search_author']) 89 92 ), 90 93 'mode' => 'OR', -
trunk/search_rules.php
r26461 r26825 108 108 l10n( 109 109 'author(s) : %s', 110 join(', ', $search['fields']['author']['words'])110 join(', ', array_map('strip_tags', $search['fields']['author']['words'])) 111 111 ) 112 112 );
Note: See TracChangeset
for help on using the changeset viewer.