Version Description
- Fix recursive chmod issue (#317 @robwoodgate)
Download this release
Release Info
| Developer | keycdn |
| Plugin | |
| Version | 1.8.10 |
| Comparing to | |
| See all releases | |
Code changes from version 1.8.9 to 1.8.10
- cache-enabler.php +1 -1
- inc/cache_enabler_disk.class.php +6 -1
- readme.txt +4 -1
cache-enabler.php
CHANGED
|
@@ -6,7 +6,7 @@ Description: Simple and fast WordPress caching plugin.
|
|
| 6 |
Author: KeyCDN
|
| 7 |
Author URI: https://www.keycdn.com
|
| 8 |
License: GPLv2 or later
|
| 9 |
-
Version: 1.8.
|
| 10 |
*/
|
| 11 |
|
| 12 |
/*
|
| 6 |
Author: KeyCDN
|
| 7 |
Author URI: https://www.keycdn.com
|
| 8 |
License: GPLv2 or later
|
| 9 |
+
Version: 1.8.10
|
| 10 |
*/
|
| 11 |
|
| 12 |
/*
|
inc/cache_enabler_disk.class.php
CHANGED
|
@@ -602,7 +602,7 @@ final class Cache_Enabler_Disk {
|
|
| 602 |
|
| 603 |
$url_host = parse_url( $url, PHP_URL_HOST );
|
| 604 |
if ( ! is_string( $url_host ) ) {
|
| 605 |
-
return
|
| 606 |
}
|
| 607 |
|
| 608 |
$url_path = parse_url( $url, PHP_URL_PATH );
|
|
@@ -1299,6 +1299,11 @@ final class Cache_Enabler_Disk {
|
|
| 1299 |
return true;
|
| 1300 |
}
|
| 1301 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1302 |
if ( ! wp_mkdir_p( $dir ) ) {
|
| 1303 |
return false;
|
| 1304 |
}
|
| 602 |
|
| 603 |
$url_host = parse_url( $url, PHP_URL_HOST );
|
| 604 |
if ( ! is_string( $url_host ) ) {
|
| 605 |
+
return CACHE_ENABLER_CACHE_DIR;
|
| 606 |
}
|
| 607 |
|
| 608 |
$url_path = parse_url( $url, PHP_URL_PATH );
|
| 1299 |
return true;
|
| 1300 |
}
|
| 1301 |
|
| 1302 |
+
// Safety check - must be inside cache directory and not attempting to traverse out
|
| 1303 |
+
if ( strpos( $dir, CACHE_ENABLER_CACHE_DIR ) === false || strpos( $dir, '../' ) !== false ) {
|
| 1304 |
+
return false;
|
| 1305 |
+
}
|
| 1306 |
+
|
| 1307 |
if ( ! wp_mkdir_p( $dir ) ) {
|
| 1308 |
return false;
|
| 1309 |
}
|
readme.txt
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
Contributors: keycdn
|
| 3 |
Tags: cache, caching, performance, webp, gzip, brotli, mobile, speed
|
| 4 |
Tested up to: 6.0
|
| 5 |
-
Stable tag: 1.8.
|
| 6 |
Requires at least: 5.1
|
| 7 |
Requires PHP: 5.6
|
| 8 |
License: GPLv2 or later
|
|
@@ -55,6 +55,9 @@ Cache Enabler captures page contents and saves it as a static HTML file on the s
|
|
| 55 |
|
| 56 |
== Changelog ==
|
| 57 |
|
|
|
|
|
|
|
|
|
|
| 58 |
= 1.8.9 =
|
| 59 |
* Update sanitization
|
| 60 |
|
| 2 |
Contributors: keycdn
|
| 3 |
Tags: cache, caching, performance, webp, gzip, brotli, mobile, speed
|
| 4 |
Tested up to: 6.0
|
| 5 |
+
Stable tag: 1.8.10
|
| 6 |
Requires at least: 5.1
|
| 7 |
Requires PHP: 5.6
|
| 8 |
License: GPLv2 or later
|
| 55 |
|
| 56 |
== Changelog ==
|
| 57 |
|
| 58 |
+
= 1.8.10 =
|
| 59 |
+
* Fix recursive chmod issue (#317 @robwoodgate)
|
| 60 |
+
|
| 61 |
= 1.8.9 =
|
| 62 |
* Update sanitization
|
| 63 |
|
