Version Description
- Fixed PHP warning when debugging is enabled and redirect path is not checked
Download this release
Release Info
Developer | jakemgold |
Plugin | Restricted Site Access |
Version | 3.1.1 |
Comparing to | |
See all releases |
Code changes from version 3.1 to 3.1.1
- readme.txt +4 -1
- restricted_site_access.php +2 -2
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.cmurrayconsulting.com/software/wordpress-restricted-site
|
|
4 |
Tags: restricted, restrict, limited, permissions, security, block
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.0
|
7 |
-
Stable tag: 3.1
|
8 |
|
9 |
Limit access to visitors who are logged in or at specific IP addresses. Many options for handling blocked visitors.
|
10 |
Great for Intranets, dev sites.
|
@@ -43,6 +43,9 @@ folder to the `/wp-content/plugins/` directory
|
|
43 |
|
44 |
== Changelog ==
|
45 |
|
|
|
|
|
|
|
46 |
= 3.1 =
|
47 |
* New feature: backwards compatibility with PHP < 5.1 (limited testing with earlier versions)
|
48 |
* Bug fiX: disappearing blocked access message text box on configuration page
|
4 |
Tags: restricted, restrict, limited, permissions, security, block
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.0
|
7 |
+
Stable tag: 3.1.1
|
8 |
|
9 |
Limit access to visitors who are logged in or at specific IP addresses. Many options for handling blocked visitors.
|
10 |
Great for Intranets, dev sites.
|
43 |
|
44 |
== Changelog ==
|
45 |
|
46 |
+
= 3.1.1 =
|
47 |
+
* Fixed PHP warning when debugging is enabled and redirect path is not checked
|
48 |
+
|
49 |
= 3.1 =
|
50 |
* New feature: backwards compatibility with PHP < 5.1 (limited testing with earlier versions)
|
51 |
* Bug fiX: disappearing blocked access message text box on configuration page
|
restricted_site_access.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Restricted Site Access
|
4 |
Plugin URI: http://www.cmurrayconsulting.com/software/wordpress-restricted-site-access/
|
5 |
Description: <strong>Limit access your site</strong> to visitors who are logged in or accessing the site from a set of specific IP addresses. Send restricted visitors to the log in page, redirect them, or display a message. <strong>Powerful control over redirection</strong>, with option to send to same path and send <strong>SEO friendly redirect headers</strong>. Great solution for Extranets, publicly hosted Intranets, or parallel development sites.
|
6 |
-
Version: 3.1
|
7 |
Author: Jacob M Goldman (C. Murray Consulting)
|
8 |
Author URI: http://www.cmurrayconsulting.com
|
9 |
|
@@ -99,7 +99,7 @@ function rsa_validate($input)
|
|
99 |
$new_input['approach'] = intval($input['approach']);
|
100 |
if ( !in_array( $new_input['approach'], array(1,2,3) ) ) $new_input['approach'] = 1;
|
101 |
|
102 |
-
$new_input['redirect_path'] = ($input['redirect_path'] == 1) ? 1 : 0;
|
103 |
$new_input['head_code'] = !in_array( $input['head_code'], array('301','302','307') ) ? $new_input['head_code'] = '302' : $input['head_code'] ;
|
104 |
$new_input['message'] = trim( $input['message'] );
|
105 |
$new_input['redirect_url'] = esc_url( $input['redirect_url'], array('http','https') );
|
3 |
Plugin Name: Restricted Site Access
|
4 |
Plugin URI: http://www.cmurrayconsulting.com/software/wordpress-restricted-site-access/
|
5 |
Description: <strong>Limit access your site</strong> to visitors who are logged in or accessing the site from a set of specific IP addresses. Send restricted visitors to the log in page, redirect them, or display a message. <strong>Powerful control over redirection</strong>, with option to send to same path and send <strong>SEO friendly redirect headers</strong>. Great solution for Extranets, publicly hosted Intranets, or parallel development sites.
|
6 |
+
Version: 3.1.1
|
7 |
Author: Jacob M Goldman (C. Murray Consulting)
|
8 |
Author URI: http://www.cmurrayconsulting.com
|
9 |
|
99 |
$new_input['approach'] = intval($input['approach']);
|
100 |
if ( !in_array( $new_input['approach'], array(1,2,3) ) ) $new_input['approach'] = 1;
|
101 |
|
102 |
+
$new_input['redirect_path'] = ( isset($input['redirect_path']) && $input['redirect_path'] == 1 ) ? 1 : 0;
|
103 |
$new_input['head_code'] = !in_array( $input['head_code'], array('301','302','307') ) ? $new_input['head_code'] = '302' : $input['head_code'] ;
|
104 |
$new_input['message'] = trim( $input['message'] );
|
105 |
$new_input['redirect_url'] = esc_url( $input['redirect_url'], array('http','https') );
|