- Timestamp:
- Mar 25, 2014, 1:53:10 PM (11 years ago)
- Location:
- branches/2.5
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/include/functions_search.inc.php
r19703 r27933 118 118 ); 119 119 120 array_push( 121 $clauses, 122 "\n ". 120 // make sure the "mode" is either OR or AND 121 if ($search['fields']['allwords']['mode'] != 'AND' and $search['fields']['allwords']['mode'] != 'OR') 122 { 123 $search['fields']['allwords']['mode'] = 'AND'; 124 } 125 126 $clauses[] = "\n ". 123 127 implode( 124 128 "\n ". -
branches/2.5/search.php
r20609 r27933 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', -
branches/2.5/search_rules.php
r19703 r27933 107 107 sprintf( 108 108 l10n('author(s) : %s'), 109 join(', ', $search['fields']['author']['words'])109 join(', ', array_map('strip_tags', $search['fields']['author']['words'])) 110 110 ) 111 111 );
Note: See TracChangeset
for help on using the changeset viewer.