Ver Fonte

! temp fix for invalid filename in cache put/get due to $key characters

Spuds há 13 anos atrás
pai
commit
bdfad9a1e4
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Sources/Load.php

+ 1 - 1
Sources/Load.php

@@ -2522,7 +2522,7 @@ function cache_put_data($key, $value, $ttl = 120)
 		$st = microtime();
 	}
 
-	$key = md5($boardurl . filemtime($sourcedir . '/Load.php')) . '-SMF-' . strtr($key, ':', '-');
+	$key = md5($boardurl . filemtime($sourcedir . '/Load.php')) . '-SMF-' . strtr($key, ':/', '-_');
 	$value = $value === null ? null : serialize($value);
 
 	switch ($cache_accelerator)