Version Description
- Update directory validation (@robwoodgate)
Download this release
Release Info
Developer | keycdn |
Plugin | Cache Enabler – WordPress Cache |
Version | 1.8.12 |
Comparing to | |
See all releases |
Code changes from version 1.8.11 to 1.8.12
- cache-enabler.php +1 -1
- inc/cache_enabler_disk.class.php +10 -2
- readme.txt +5 -2
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.12
|
10 |
*/
|
11 |
|
12 |
/*
|
inc/cache_enabler_disk.class.php
CHANGED
@@ -1274,7 +1274,7 @@ final class Cache_Enabler_Disk {
|
|
1274 |
* and will attempt to update any existing directories accordingly.
|
1275 |
*
|
1276 |
* @since 1.7.0
|
1277 |
-
* @change 1.8.
|
1278 |
*
|
1279 |
* @param string $dir Directory path to create.
|
1280 |
* @return bool True if the directory either already exists or was created *and* has the
|
@@ -1299,7 +1299,15 @@ final class Cache_Enabler_Disk {
|
|
1299 |
return true;
|
1300 |
}
|
1301 |
|
1302 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1303 |
return false;
|
1304 |
}
|
1305 |
|
1274 |
* and will attempt to update any existing directories accordingly.
|
1275 |
*
|
1276 |
* @since 1.7.0
|
1277 |
+
* @change 1.8.12
|
1278 |
*
|
1279 |
* @param string $dir Directory path to create.
|
1280 |
* @return bool True if the directory either already exists or was created *and* has the
|
1299 |
return true;
|
1300 |
}
|
1301 |
|
1302 |
+
// Directory validation
|
1303 |
+
$valid = false;
|
1304 |
+
if ( ! empty( CACHE_ENABLER_CACHE_DIR ) && strpos( $dir, CACHE_ENABLER_CACHE_DIR ) === 0 ) {
|
1305 |
+
$valid = true;
|
1306 |
+
}
|
1307 |
+
if ( ! empty( CACHE_ENABLER_SETTINGS_DIR ) && strpos( $dir, CACHE_ENABLER_SETTINGS_DIR ) === 0 ) {
|
1308 |
+
$valid = true;
|
1309 |
+
}
|
1310 |
+
if ( ! $valid || strpos( $dir, '../' ) !== false ) {
|
1311 |
return false;
|
1312 |
}
|
1313 |
|
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,8 +55,11 @@ Cache Enabler captures page contents and saves it as a static HTML file on the s
|
|
55 |
|
56 |
== Changelog ==
|
57 |
|
|
|
|
|
|
|
58 |
= 1.8.11 =
|
59 |
-
* Fix directory
|
60 |
|
61 |
= 1.8.10 =
|
62 |
* Fix recursive chmod issue (#317 @robwoodgate)
|
2 |
Contributors: keycdn
|
3 |
Tags: cache, caching, performance, webp, gzip, brotli, mobile, speed
|
4 |
Tested up to: 6.0
|
5 |
+
Stable tag: 1.8.12
|
6 |
Requires at least: 5.1
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
55 |
|
56 |
== Changelog ==
|
57 |
|
58 |
+
= 1.8.12 =
|
59 |
+
* Update directory validation (@robwoodgate)
|
60 |
+
|
61 |
= 1.8.11 =
|
62 |
+
* Fix directory validation
|
63 |
|
64 |
= 1.8.10 =
|
65 |
* Fix recursive chmod issue (#317 @robwoodgate)
|