Version Description
- Fix JSON encoded urls when using SSL
Download this release
Release Info
Developer | nsp-code |
Plugin | WP Hide & Security Enhancer |
Version | 1.5.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.5.3 to 1.5.3.1
- include/functions.class.php +9 -20
- languages/wp-hide-security-enhancer.mo +0 -0
- languages/wp-hide-security-enhancer.po +8 -8
- readme.txt +4 -1
- wp-hide.php +1 -1
include/functions.class.php
CHANGED
@@ -1379,8 +1379,8 @@
|
|
1379 |
$_relative_url_replacements_dq[ '"' . str_ireplace( $home_url, "", $old_url) ] = '"' . str_ireplace( $home_url, "", $new_url);
|
1380 |
$_relative_url_replacements_sq[ "'" . str_ireplace( $home_url, "", $old_url) ] = "'" . str_ireplace( $home_url, "", $new_url);
|
1381 |
|
1382 |
-
$_relative_domain_url_replacements_dq[ '"' . str_ireplace( $domain_url, "", $old_url) ] = '"' . str_ireplace( $domain_url, "", $new_url);
|
1383 |
-
$_relative_domain_url_replacements_sq[ "'" . str_ireplace( $domain_url, "", $old_url) ] = "'" . str_ireplace( $domain_url, "", $new_url);
|
1384 |
//$_relative_domain_url_replacements_ssl_dq[ '"' . str_ireplace( $domain_url_ssl, "", $old_url) ] = '"' . str_ireplace( $domain_url_ssl, "", $new_url);
|
1385 |
//$_relative_domain_url_replacements_ssl_sq[ "'" . str_ireplace( $domain_url_ssl, "", $old_url) ] = "'" . str_ireplace( $domain_url_ssl, "", $new_url);
|
1386 |
|
@@ -1433,18 +1433,13 @@
|
|
1433 |
$new_url = trim(json_encode($new_url), '"');
|
1434 |
|
1435 |
$text = str_ireplace( $old_url, $new_url ,$text );
|
1436 |
-
|
1437 |
-
|
1438 |
-
//check for url encoded urls
|
1439 |
-
foreach($_replacements_np as $old_url => $new_url)
|
1440 |
-
{
|
1441 |
$old_url = trim(urlencode($old_url), '"');
|
1442 |
$new_url = trim(urlencode($new_url), '"');
|
1443 |
|
1444 |
$text = str_ireplace( $old_url, $new_url ,$text );
|
1445 |
}
|
1446 |
-
|
1447 |
-
/*
|
1448 |
//check for json encoded urls
|
1449 |
foreach($_replacements as $old_url => $new_url)
|
1450 |
{
|
@@ -1452,24 +1447,18 @@
|
|
1452 |
$new_url = trim(json_encode($new_url), '"');
|
1453 |
|
1454 |
$text = str_ireplace( $old_url, $new_url ,$text );
|
1455 |
-
|
1456 |
-
|
1457 |
-
|
1458 |
-
//check for url encoded urls
|
1459 |
-
foreach($_replacements as $old_url => $new_url)
|
1460 |
-
{
|
1461 |
$old_url = trim(urlencode($old_url), '"');
|
1462 |
$new_url = trim(urlencode($new_url), '"');
|
1463 |
|
1464 |
$text = str_ireplace( $old_url, $new_url ,$text );
|
1465 |
}
|
1466 |
-
*/
|
1467 |
|
1468 |
-
//check for
|
1469 |
-
foreach($
|
1470 |
{
|
1471 |
-
$text
|
1472 |
-
$text
|
1473 |
}
|
1474 |
|
1475 |
/**
|
1379 |
$_relative_url_replacements_dq[ '"' . str_ireplace( $home_url, "", $old_url) ] = '"' . str_ireplace( $home_url, "", $new_url);
|
1380 |
$_relative_url_replacements_sq[ "'" . str_ireplace( $home_url, "", $old_url) ] = "'" . str_ireplace( $home_url, "", $new_url);
|
1381 |
|
1382 |
+
$_relative_domain_url_replacements_dq[ '"' . str_ireplace( array( $domain_url, $domain_url_ssl ), "", $old_url) ] = '"' . str_ireplace( array( $domain_url, $domain_url_ssl ), "", $new_url);
|
1383 |
+
$_relative_domain_url_replacements_sq[ "'" . str_ireplace( array( $domain_url, $domain_url_ssl ), "", $old_url) ] = "'" . str_ireplace( array( $domain_url, $domain_url_ssl ), "", $new_url);
|
1384 |
//$_relative_domain_url_replacements_ssl_dq[ '"' . str_ireplace( $domain_url_ssl, "", $old_url) ] = '"' . str_ireplace( $domain_url_ssl, "", $new_url);
|
1385 |
//$_relative_domain_url_replacements_ssl_sq[ "'" . str_ireplace( $domain_url_ssl, "", $old_url) ] = "'" . str_ireplace( $domain_url_ssl, "", $new_url);
|
1386 |
|
1433 |
$new_url = trim(json_encode($new_url), '"');
|
1434 |
|
1435 |
$text = str_ireplace( $old_url, $new_url ,$text );
|
1436 |
+
|
|
|
|
|
|
|
|
|
1437 |
$old_url = trim(urlencode($old_url), '"');
|
1438 |
$new_url = trim(urlencode($new_url), '"');
|
1439 |
|
1440 |
$text = str_ireplace( $old_url, $new_url ,$text );
|
1441 |
}
|
1442 |
+
|
|
|
1443 |
//check for json encoded urls
|
1444 |
foreach($_replacements as $old_url => $new_url)
|
1445 |
{
|
1447 |
$new_url = trim(json_encode($new_url), '"');
|
1448 |
|
1449 |
$text = str_ireplace( $old_url, $new_url ,$text );
|
1450 |
+
|
|
|
|
|
|
|
|
|
|
|
1451 |
$old_url = trim(urlencode($old_url), '"');
|
1452 |
$new_url = trim(urlencode($new_url), '"');
|
1453 |
|
1454 |
$text = str_ireplace( $old_url, $new_url ,$text );
|
1455 |
}
|
|
|
1456 |
|
1457 |
+
//check for url encoded urls
|
1458 |
+
foreach($_relative_domain_url_replacements_dq as $old_url => $new_url)
|
1459 |
{
|
1460 |
+
$text = str_ireplace( trim( json_encode( trim( $old_url, '"')), '"' ) , trim( json_encode( trim ( $new_url, '"')), '"' ) ,$text );
|
1461 |
+
$text = str_ireplace( trim( urlencode(trim( $old_url, '"')), '"' ) , trim( urlencode(trim ( $new_url, '"')), '"' ) ,$text );
|
1462 |
}
|
1463 |
|
1464 |
/**
|
languages/wp-hide-security-enhancer.mo
CHANGED
Binary file
|
languages/wp-hide-security-enhancer.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Hide & Security Enhancer\n"
|
4 |
-
"POT-Creation-Date: 2018-12-11
|
5 |
-
"PO-Revision-Date: 2018-12-11
|
6 |
"Last-Translator: NspCode <contact@nsp-code.com>\n"
|
7 |
"Language-Team: Nsp Code\n"
|
8 |
"Language: en\n"
|
@@ -56,31 +56,31 @@ msgid ""
|
|
56 |
"changes to apply"
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: include/functions.class.php:
|
60 |
#, php-format
|
61 |
msgid "The %1$s plugin header is deprecated. Use %2$s instead."
|
62 |
msgstr ""
|
63 |
|
64 |
-
#: include/functions.class.php:
|
65 |
#, php-format
|
66 |
msgid "By %s."
|
67 |
msgstr ""
|
68 |
|
69 |
-
#: include/functions.class.php:
|
70 |
msgid ""
|
71 |
"Help us to improve this plugin by sending any improvement suggestions and "
|
72 |
"reporting any issues at "
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: include/functions.class.php:
|
76 |
msgid "Did you know there is a"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: include/functions.class.php:
|
80 |
msgid "version of this plug-in?"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: include/functions.class.php:
|
84 |
msgid ""
|
85 |
"Did you find this plugin useful? Please support our work by spread the word "
|
86 |
"about the code, or write an article about the plugin in your blog with a "
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Hide & Security Enhancer\n"
|
4 |
+
"POT-Creation-Date: 2018-12-11 15:09+0200\n"
|
5 |
+
"PO-Revision-Date: 2018-12-11 15:09+0200\n"
|
6 |
"Last-Translator: NspCode <contact@nsp-code.com>\n"
|
7 |
"Language-Team: Nsp Code\n"
|
8 |
"Language: en\n"
|
56 |
"changes to apply"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: include/functions.class.php:2123
|
60 |
#, php-format
|
61 |
msgid "The %1$s plugin header is deprecated. Use %2$s instead."
|
62 |
msgstr ""
|
63 |
|
64 |
+
#: include/functions.class.php:2208
|
65 |
#, php-format
|
66 |
msgid "By %s."
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: include/functions.class.php:2525
|
70 |
msgid ""
|
71 |
"Help us to improve this plugin by sending any improvement suggestions and "
|
72 |
"reporting any issues at "
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: include/functions.class.php:2526
|
76 |
msgid "Did you know there is a"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: include/functions.class.php:2526
|
80 |
msgid "version of this plug-in?"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: include/functions.class.php:2527
|
84 |
msgid ""
|
85 |
"Did you find this plugin useful? Please support our work by spread the word "
|
86 |
"about the code, or write an article about the plugin in your blog with a "
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.nsp-code.com/
|
|
4 |
Tags: wordpress hide, hide, security, improve security, hacking, wp hide, custom login, wp-loging.php, wp-admin, admin hide, login change,
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 5.0
|
7 |
-
Stable tag: 1.5.3
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Hide and increase Security for your WordPress site instance using smart techniques. No files are changed on your server.
|
@@ -271,6 +271,9 @@ Please get in touch with us and we'll do our best to include it for a next versi
|
|
271 |
|
272 |
== Changelog ==
|
273 |
|
|
|
|
|
|
|
274 |
= 1.5.3 =
|
275 |
* Remove _relative_domain_url_replacements_ssl_sq and _relative_domain_url_replacements_ssl_dq replacements for buffer as being integrated to other variables
|
276 |
* Relocated upload_dir() to general functions.php to catch new content and uploads slugs.
|
4 |
Tags: wordpress hide, hide, security, improve security, hacking, wp hide, custom login, wp-loging.php, wp-admin, admin hide, login change,
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 5.0
|
7 |
+
Stable tag: 1.5.3.1
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Hide and increase Security for your WordPress site instance using smart techniques. No files are changed on your server.
|
271 |
|
272 |
== Changelog ==
|
273 |
|
274 |
+
= 1.5.3.1 =
|
275 |
+
* Fix JSON encoded urls when using SSL
|
276 |
+
|
277 |
= 1.5.3 =
|
278 |
* Remove _relative_domain_url_replacements_ssl_sq and _relative_domain_url_replacements_ssl_dq replacements for buffer as being integrated to other variables
|
279 |
* Relocated upload_dir() to general functions.php to catch new content and uploads slugs.
|
wp-hide.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://www.wp-hide.com/
|
|
5 |
Description: Hide and increase Security for your WordPress website instance using smart techniques. No files are changed on your server.
|
6 |
Author: Nsp Code
|
7 |
Author URI: http://www.nsp-code.com
|
8 |
-
Version: 1.5.3
|
9 |
Text Domain: wp-hide-security-enhancer
|
10 |
Domain Path: /languages/
|
11 |
*/
|
5 |
Description: Hide and increase Security for your WordPress website instance using smart techniques. No files are changed on your server.
|
6 |
Author: Nsp Code
|
7 |
Author URI: http://www.nsp-code.com
|
8 |
+
Version: 1.5.3.1
|
9 |
Text Domain: wp-hide-security-enhancer
|
10 |
Domain Path: /languages/
|
11 |
*/
|