Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache.DefinitionImpl / Cache.SerializerPath ignored #370

Open
sogerc1 opened this issue Apr 3, 2023 · 1 comment
Open

Cache.DefinitionImpl / Cache.SerializerPath ignored #370

sogerc1 opened this issue Apr 3, 2023 · 1 comment

Comments

@sogerc1
Copy link

sogerc1 commented Apr 3, 2023

I have HTMLPurifier 4.15.0 from PEAR on an ubuntu server 22.04.

I've set
$config->set('Cache.DefinitionImpl', null);
but I'm still seeing this warning:

/usr/share/php/HTMLPurifier/DefinitionCache/Serializer.php(297): Directory /usr/share/php/HTMLPurifier/DefinitionCache/Serializer not writable, please chmod to 777

If I add:
$config->set('Cache.SerializerPath', '/some/dir'); // which is writable by the web server
the exact same warning still appears (still mentioning DefinitionCache/Serializer not my directory).

I can't set the permissions of the default directory because I have no access and I don't need caching anyway because I'm doing inbound filtering.

@sogerc1
Copy link
Author

sogerc1 commented Apr 3, 2023

Additional info: even though I have those two options cache files still appear in the DefinitionCache/Serializer directory if I give write permission in my development virtual machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant