From 3c6c370a7c6e7e10be4ca1ddf543385d35ceedbc Mon Sep 17 00:00:00 2001 From: Cerdic <cedric@yterium.com> Date: Thu, 24 Mar 2016 12:44:34 +0000 Subject: [PATCH] Report de r22968 : Gros bug de nom de cache dans la fonction recuperer_url_cache() qui en gros ignorait l'URL concernait et melangeait les caches, donc --- ecrire/inc/distant.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ecrire/inc/distant.php b/ecrire/inc/distant.php index 139f94ce17..4a61ba0f83 100644 --- a/ecrire/inc/distant.php +++ b/ecrire/inc/distant.php @@ -475,9 +475,10 @@ function recuperer_url_cache($url, $options = array()) { $sig = $options; unset($sig['if_modified_since']); unset($sig['delai_cache']); + $sig['url'] = $url; $dir = sous_repertoire(_DIR_CACHE, 'curl'); - $cache = md5(serialize($sig)) . "-" . substr(preg_replace(",\W+,", "_", $url), 80); + $cache = md5(serialize($sig)) . "-" . substr(preg_replace(",\W+,", "_", $url), 0, 80); $sub = sous_repertoire($dir, substr($cache, 0, 2)); $cache = "$sub$cache"; -- GitLab