Fixed : fix php version compatible with php version 8.2 to 8.5
This commit is contained in:
@@ -139,8 +139,9 @@ class HTMLPurifier_DefinitionCache_Serializer extends HTMLPurifier_DefinitionCac
|
||||
continue;
|
||||
}
|
||||
$key = substr($filename, 0, strlen($filename) - 4);
|
||||
if ($this->isOld($key, $config)) {
|
||||
unlink($dir . '/' . $filename);
|
||||
$file = $dir . '/' . $filename;
|
||||
if ($this->isOld($key, $config) && file_exists($file)) {
|
||||
unlink($file);
|
||||
}
|
||||
}
|
||||
closedir($dh);
|
||||
|
||||
Reference in New Issue
Block a user