diff --git a/ecrire/inc/distant.php b/ecrire/inc/distant.php index 139f94ce17aaae164994fe37ad9a3e086b11907c..4a61ba0f839bd5f948f686c715aff5f9273f17e0 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";