Simple 301 Redirects - Version 1.07

Version Description

  • Security Update - Better handling of posted data.
Download this release

Release Info

Developer scottnelle
Plugin Icon 128x128 Simple 301 Redirects
Version 1.07
Comparing to
See all releases

Code changes from version 1.06 to 1.07

Files changed (2) hide show
  1. readme.txt +5 -2
  2. wp-simple-301-redirects.php +3 -3
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: scottnelle
3
  Tags: 301, redirect, url, seo
4
  Requires at least: 3.0
5
- Tested up to: 4.3
6
- Stable tag: 1.06
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -21,6 +21,9 @@ Simple 301 Redirects provides an easy method of redirecting requests to another
21
 
22
 
23
  == Changelog ==
 
 
 
24
  = 1.06 =
25
  * Security Updates - Special thanks to Ryan Hellyer!
26
 
2
  Contributors: scottnelle
3
  Tags: 301, redirect, url, seo
4
  Requires at least: 3.0
5
+ Tested up to: 4.9
6
+ Stable tag: 1.07
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
21
 
22
 
23
  == Changelog ==
24
+ = 1.07 =
25
+ * Security Update - Better handling of posted data.
26
+
27
  = 1.06 =
28
  * Security Updates - Special thanks to Ryan Hellyer!
29
 
wp-simple-301-redirects.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Simple 301 Redirects
4
  Plugin URI: http://www.scottnelle.com/simple-301-redirects-plugin-for-wordpress/
5
  Description: Create a list of URLs that you would like to 301 redirect to another page or site. Now with wildcard support.
6
- Version: 1.06
7
  Author: Scott Nellé
8
  Author URI: http://www.scottnelle.com/
9
  */
@@ -185,8 +185,8 @@ if (!class_exists("Simple301redirects")) {
185
  $redirects = array();
186
 
187
  for($i = 0; $i < sizeof($data['request']); ++$i) {
188
- $request = trim($data['request'][$i]);
189
- $destination = trim($data['destination'][$i]);
190
 
191
  if ($request == '' && $destination == '') { continue; }
192
  else { $redirects[$request] = $destination; }
3
  Plugin Name: Simple 301 Redirects
4
  Plugin URI: http://www.scottnelle.com/simple-301-redirects-plugin-for-wordpress/
5
  Description: Create a list of URLs that you would like to 301 redirect to another page or site. Now with wildcard support.
6
+ Version: 1.07
7
  Author: Scott Nellé
8
  Author URI: http://www.scottnelle.com/
9
  */
185
  $redirects = array();
186
 
187
  for($i = 0; $i < sizeof($data['request']); ++$i) {
188
+ $request = trim( sanitize_text_field( $data['request'][$i] ) );
189
+ $destination = trim( sanitize_text_field( $data['destination'][$i] ) );
190
 
191
  if ($request == '' && $destination == '') { continue; }
192
  else { $redirects[$request] = $destination; }