Version Description
- Bug fixing in reading htaccess file. reported by (@theschappy)
Download this release
Release Info
Developer | osamaesh |
Plugin | SEO Redirection Plugin |
Version | 9.2 |
Comparing to | |
See all releases |
Code changes from version 9.1 to 9.2
- readme.txt +5 -1
- seo-redirection.php +20 -18
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: wp-buy, osama.esh
|
|
3 |
Tags: post, admin, seo, pages, manage, 301, 404, soft 404, redirect, permalink, redirection, redirection, https, automatic redirection, htaccess, ssl, https redirection, ssl certificate, secure page, secure, force ssl, force https, seo redirection, post redirect, 404 to 301
|
4 |
Requires at least: 4.1
|
5 |
Tested up to: 6.0.1
|
6 |
-
Stable tag: 9.
|
7 |
|
8 |
SEO Redirection is a powerful redirect manager to manage 301 redirects without requiring knowledge of Apache .htaccess files.
|
9 |
|
@@ -75,6 +75,10 @@ Yes, here is the plugin full knowledge base http://www.clogica.com/kb/
|
|
75 |
|
76 |
== Changelog ==
|
77 |
|
|
|
|
|
|
|
|
|
78 |
= 9.1 =
|
79 |
* Important security fixes.
|
80 |
|
3 |
Tags: post, admin, seo, pages, manage, 301, 404, soft 404, redirect, permalink, redirection, redirection, https, automatic redirection, htaccess, ssl, https redirection, ssl certificate, secure page, secure, force ssl, force https, seo redirection, post redirect, 404 to 301
|
4 |
Requires at least: 4.1
|
5 |
Tested up to: 6.0.1
|
6 |
+
Stable tag: 9.2
|
7 |
|
8 |
SEO Redirection is a powerful redirect manager to manage 301 redirects without requiring knowledge of Apache .htaccess files.
|
9 |
|
75 |
|
76 |
== Changelog ==
|
77 |
|
78 |
+
= 9.2 =
|
79 |
+
* Bug fixing in reading htaccess file. reported by (@theschappy)
|
80 |
+
|
81 |
+
|
82 |
= 9.1 =
|
83 |
* Important security fixes.
|
84 |
|
seo-redirection.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: SEO Redirection
|
|
4 |
Plugin URI: https://www.wp-buy.com/product/seo-redirection-premium-wordpress-plugin/
|
5 |
Description: By this plugin you can manage all your website redirection types easily.
|
6 |
Author: wp-buy
|
7 |
-
Version: 9.
|
8 |
Author URI: https://www.wp-buy.com
|
9 |
Text Domain: seo-redirection
|
10 |
*/
|
@@ -233,23 +233,25 @@ function WPSR_check_default_permalink()
|
|
233 |
$marker_name="FRedirect_ErrorDocument";
|
234 |
$filestr ="";
|
235 |
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
|
|
|
|
253 |
|
254 |
}
|
255 |
|
4 |
Plugin URI: https://www.wp-buy.com/product/seo-redirection-premium-wordpress-plugin/
|
5 |
Description: By this plugin you can manage all your website redirection types easily.
|
6 |
Author: wp-buy
|
7 |
+
Version: 9.2
|
8 |
Author URI: https://www.wp-buy.com
|
9 |
Text Domain: seo-redirection
|
10 |
*/
|
233 |
$marker_name="FRedirect_ErrorDocument";
|
234 |
$filestr ="";
|
235 |
|
236 |
+
|
237 |
+
if(is_readable($file))
|
238 |
+
{
|
239 |
+
$f = @fopen( $file, 'r+' );
|
240 |
+
$filestr = @fread($f , filesize($file));
|
241 |
+
if (strpos($filestr , $marker_name) === false)
|
242 |
+
{
|
243 |
+
insert_with_markers( $file, $marker_name, $content );
|
244 |
+
}
|
245 |
+
if ($f !== false) {
|
246 |
+
$filestr = @fread($f , filesize($file));
|
247 |
+
if (strpos($filestr , $marker_name) === false)
|
248 |
+
{
|
249 |
+
insert_with_markers( $file, $marker_name, $content );
|
250 |
+
}
|
251 |
+
}
|
252 |
+
}else{
|
253 |
+
echo $file.' is not readable!';
|
254 |
+
}
|
255 |
|
256 |
}
|
257 |
|