From cb390082e6441c31c71410769b326ba99f598462 Mon Sep 17 00:00:00 2001 From: Luca Castellone Date: Thu, 19 Sep 2024 14:43:46 +0200 Subject: [PATCH 1/2] Fixes #6982 --- inc/functions/files.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions/files.php b/inc/functions/files.php index 57580f83d8..7bb2ccce23 100755 --- a/inc/functions/files.php +++ b/inc/functions/files.php @@ -1429,7 +1429,7 @@ function _rocket_get_cache_dirs( $url_host, $cache_path = '', $hard_reset = fals $regex = sprintf( '/%1$s%2$s(.*)/i', - _rocket_normalize_path( $cache_path, true ), + preg_quote( $cache_path, '/' ), $url_host ); From 292073ac26f2055c73e3f910924a21e700296722 Mon Sep 17 00:00:00 2001 From: Luca Castellone Date: Tue, 24 Sep 2024 20:36:33 +0200 Subject: [PATCH 2/2] _rocket_normalize_pat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Rémy Perona --- inc/functions/files.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions/files.php b/inc/functions/files.php index 7bb2ccce23..4b15954d15 100755 --- a/inc/functions/files.php +++ b/inc/functions/files.php @@ -1429,7 +1429,7 @@ function _rocket_get_cache_dirs( $url_host, $cache_path = '', $hard_reset = fals $regex = sprintf( '/%1$s%2$s(.*)/i', - preg_quote( $cache_path, '/' ), + preg_quote( _rocket_normalize_path( $cache_path, true ), '/' ), $url_host );