diff options
author | Mario <mario@mariovavti.com> | 2024-01-03 10:56:03 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-01-03 10:56:03 +0000 |
commit | d3e5d05026feec42f5836f821982e0cc59d91353 (patch) | |
tree | c491026b2926ca4de0df363435bdc05dbd498cff /vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache | |
parent | 322b619a7122fa812321ceb67016e0b1ce4affb6 (diff) | |
download | volse-hubzilla-d3e5d05026feec42f5836f821982e0cc59d91353.tar.gz volse-hubzilla-d3e5d05026feec42f5836f821982e0cc59d91353.tar.bz2 volse-hubzilla-d3e5d05026feec42f5836f821982e0cc59d91353.zip |
update ezyang/htmlpurifier
Diffstat (limited to 'vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache')
-rw-r--r-- | vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php index b82c6bb20..bfad967fb 100644 --- a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php +++ b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php @@ -287,13 +287,14 @@ class HTMLPurifier_DefinitionCache_Serializer extends HTMLPurifier_DefinitionCac } elseif (filegroup($dir) === posix_getgid()) { $chmod = $chmod | 0070; } else { - // PHP's probably running as nobody, so we'll - // need to give global permissions - $chmod = $chmod | 0777; + // PHP's probably running as nobody, it is + // not obvious how to fix this (777 is probably + // bad if you are multi-user), let the user figure it out + $chmod = null; } trigger_error( - 'Directory ' . $dir . ' not writable, ' . - 'please chmod to ' . decoct($chmod), + 'Directory ' . $dir . ' not writable. ' . + ($chmod === null ? '' : 'Please chmod to ' . decoct($chmod)), E_USER_WARNING ); } else { |