0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-01-03 13:21:51 +00:00

Fixed htmlpurifier destroying ACLs on directory creation

This commit is contained in:
Theodore R. Smith 2014-06-27 16:39:17 -04:00
parent 80ebd4322e
commit f96547dedc

View File

@ -219,9 +219,11 @@ class HTMLPurifier_DefinitionCache_Serializer extends HTMLPurifier_DefinitionCac
} elseif (!$this->_testPermissions($base, $chmod)) {
return false;
}
$old = umask(0000);
mkdir($directory, $chmod);
umask($old);
// Fix for "chmod destroys ACL bug #32
// https://github.com/ezyang/htmlpurifier/issues/32
//$old = umask(0000);
mkdir($director);
//umask($old);
} elseif (!$this->_testPermissions($directory, $chmod)) {
return false;
}