HTMLPurifier Serializer caches into vendor directory by default

Created on 1 August 2018, over 6 years ago
Updated 31 October 2024, about 2 months ago

There is an open issue with this problem at the htmlpurifier library project: https://github.com/ezyang/htmlpurifier/issues/105

After using the purify method in the filter you get this error:

User warning: Directory .../vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer not writable, please chmod to 777 in HTMLPurifier_DefinitionCache_Serializer->_testPermissions() (line 299 of .../vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php)...

We need to override the path Serializer uses by default within vendor.

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

🇪🇸Spain juanolalla

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024