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:
parent
80ebd4322e
commit
f96547dedc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user