mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-02 04:10:25 +02:00
Update Serializer.php (#443)
This commit is contained in:
@@ -139,8 +139,9 @@ class HTMLPurifier_DefinitionCache_Serializer extends HTMLPurifier_DefinitionCac
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$key = substr($filename, 0, strlen($filename) - 4);
|
$key = substr($filename, 0, strlen($filename) - 4);
|
||||||
if ($this->isOld($key, $config)) {
|
$file = $dir . '/' . $filename;
|
||||||
unlink($dir . '/' . $filename);
|
if ($this->isOld($key, $config) && file_exists($file)) {
|
||||||
|
unlink($file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
closedir($dh);
|
closedir($dh);
|
||||||
|
Reference in New Issue
Block a user