Cache Enabler – WordPress Cache - Version 1.8.11

Version Description

  • Fix directory check
Download this release

Release Info

Developer keycdn
Plugin Icon 128x128 Cache Enabler – WordPress Cache
Version 1.8.11
Comparing to
See all releases

Code changes from version 1.8.10 to 1.8.11

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
10
  */
11
 
12
  /*
6
  Author: KeyCDN
7
  Author URI: https://www.keycdn.com
8
  License: GPLv2 or later
9
+ Version: 1.8.11
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.6
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,8 +1299,7 @@ final class Cache_Enabler_Disk {
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
 
1274
  * and will attempt to update any existing directories accordingly.
1275
  *
1276
  * @since 1.7.0
1277
+ * @change 1.8.11
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
+ if ( strpos( $dir, '../' ) !== false ) {
 
1303
  return false;
1304
  }
1305
 
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.10
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.10 =
59
  * Fix recursive chmod issue (#317 @robwoodgate)
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.11
6
  Requires at least: 5.1
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
55
 
56
  == Changelog ==
57
 
58
+ = 1.8.11 =
59
+ * Fix directory check
60
+
61
  = 1.8.10 =
62
  * Fix recursive chmod issue (#317 @robwoodgate)
63