mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-05 14:11:52 +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)) {
|
} elseif (!$this->_testPermissions($base, $chmod)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$old = umask(0000);
|
// Fix for "chmod destroys ACL bug #32
|
||||||
mkdir($directory, $chmod);
|
// https://github.com/ezyang/htmlpurifier/issues/32
|
||||||
umask($old);
|
//$old = umask(0000);
|
||||||
|
mkdir($director);
|
||||||
|
//umask($old);
|
||||||
} elseif (!$this->_testPermissions($directory, $chmod)) {
|
} elseif (!$this->_testPermissions($directory, $chmod)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user