Search Everything - Version 8.1.6

Version Description

  • Security update: filtering out empty search strings that could enable sql injections
Download this release

Release Info

Developer sovrn
Plugin Icon wp plugin Search Everything
Version 8.1.6
Comparing to
See all releases

Code changes from version 8.1.5 to 8.1.6

Files changed (3) hide show
  1. config.php +6 -0
  2. readme.txt +6 -3
  3. search-everything.php +7 -5
config.php CHANGED
@@ -109,6 +109,12 @@ function se_upgrade() {
109
  }
110
  }
111
 
 
 
 
 
 
 
112
  function se_migrate_8_1_4() {
113
  $se_meta = get_option('se_meta', false);
114
  $se_meta['version'] = '8.1.5';
109
  }
110
  }
111
 
112
+ function se_migrate_8_1_5() {
113
+ $se_meta = get_option('se_meta', false);
114
+ $se_meta['version'] = '8.1.6';
115
+ update_option('se_meta', $se_meta);
116
+ }
117
+
118
  function se_migrate_8_1_4() {
119
  $se_meta = get_option('se_meta', false);
120
  $se_meta['version'] = '8.1.5';
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Plugin Name ===
2
- Contributors: zemanta
3
  Tags: search, search highlight, tag search, category search, category exclusion, comment search, page search, admin, seo, post filter, research
4
  Requires at least: 3.6
5
- Tested up to: 4.5.1
6
- Stable tag: 8.1.5
7
 
8
  Search Everything increases WordPress' default search functionality in three easy steps.
9
 
@@ -116,6 +116,9 @@ Before using the plugin please read the full version of [Zemanta Terms of Servic
116
 
117
  == Changelog ==
118
 
 
 
 
119
  = 8.1.5 =
120
  * Compatibility with PHP 7
121
  * Bypassing highlighting in dashboard searches
1
  === Plugin Name ===
2
+ Contributors: sovrn, zemanta
3
  Tags: search, search highlight, tag search, category search, category exclusion, comment search, page search, admin, seo, post filter, research
4
  Requires at least: 3.6
5
+ Tested up to: 4.6
6
+ Stable tag: 8.1.6
7
 
8
  Search Everything increases WordPress' default search functionality in three easy steps.
9
 
116
 
117
  == Changelog ==
118
 
119
+ = 8.1.6 =
120
+ * Security update: filtering out empty search strings that could enable sql injections
121
+
122
  = 8.1.5 =
123
  * Compatibility with PHP 7
124
  * Bypassing highlighting in dashboard searches
search-everything.php CHANGED
@@ -3,12 +3,12 @@
3
  Plugin Name: Search Everything
4
  Plugin URI: http://wordpress.org/plugins/search-everything/
5
  Description: Adds search functionality without modifying any template pages: Activate, Configure and Search. Options Include: search highlight, search pages, excerpts, attachments, drafts, comments, tags and custom fields (metadata). Also offers the ability to exclude specific pages and posts. Does not search password-protected content.
6
- Version: 8.1.5
7
- Author: Zemanta
8
- Author URI: http://www.zemanta.com
9
  */
10
 
11
- define('SE_VERSION', '8.1.5');
12
 
13
  if (!defined('SE_PLUGIN_FILE'))
14
  define('SE_PLUGIN_FILE', plugin_basename(__FILE__));
@@ -235,9 +235,10 @@ class SearchEverything {
235
  $search_terms = array( $s );
236
  } else {
237
  preg_match_all( '/".*?("|$)|((?<=[\\s",+])|^)[^\\s",+]+/', $s, $matches );
238
- $search_terms = array_map( create_function( '$a', 'return trim($a, "\\"\'\\n\\r ");' ), $matches[0] );
239
  }
240
  }
 
241
  return $search_terms;
242
  }
243
 
@@ -299,6 +300,7 @@ class SearchEverything {
299
 
300
  // if it's not a sentance add other terms
301
  $search_sql_query .= '(';
 
302
  foreach ( $terms as $term ) {
303
  $search_sql_query .= $seperator;
304
 
3
  Plugin Name: Search Everything
4
  Plugin URI: http://wordpress.org/plugins/search-everything/
5
  Description: Adds search functionality without modifying any template pages: Activate, Configure and Search. Options Include: search highlight, search pages, excerpts, attachments, drafts, comments, tags and custom fields (metadata). Also offers the ability to exclude specific pages and posts. Does not search password-protected content.
6
+ Version: 8.1.6
7
+ Author: Sovrn, zemanta
8
+ Author URI: http://www.sovrn.com
9
  */
10
 
11
+ define('SE_VERSION', '8.1.6');
12
 
13
  if (!defined('SE_PLUGIN_FILE'))
14
  define('SE_PLUGIN_FILE', plugin_basename(__FILE__));
235
  $search_terms = array( $s );
236
  } else {
237
  preg_match_all( '/".*?("|$)|((?<=[\\s",+])|^)[^\\s",+]+/', $s, $matches );
238
+ $search_terms = array_filter(array_map( create_function( '$a', 'return trim($a, "\\"\'\\n\\r ");' ), $matches[0] ));
239
  }
240
  }
241
+
242
  return $search_terms;
243
  }
244
 
300
 
301
  // if it's not a sentance add other terms
302
  $search_sql_query .= '(';
303
+
304
  foreach ( $terms as $term ) {
305
  $search_sql_query .= $seperator;
306