|
Cache directory permissions setting January 12, 2011 04:54PM |
Registered: 2 years ago Posts: 5 |
Hello,
at present the cache directory permissions are hardcoded to be 0755, sometimes it is useful to specify custom permissions (executing PHP from two different user accounts, phpunit, safe mode, etc.).
I have hacked the standard HTML Purifier to use custom permissions for the Moodle project - https://github.com/moodle/custom-htmlpurifier/compare/882ffed9babb9ddc20bfb0979b14bb52d64c96c4...MOODLE_20_STABLE
Is this interesting? Could I do anything to get something similar included in HTML Purifier?
Thanks for all your hard work on this library!
Petr
|
Re: Cache directory permissions setting January 12, 2011 09:04PM |
Admin Registered: 6 years ago Posts: 2,652 |
|
Re: Cache directory permissions setting January 13, 2011 03:35AM |
Registered: 2 years ago Posts: 5 |
|
Re: Cache directory permissions setting January 13, 2011 06:13AM |
Registered: 2 years ago Posts: 5 |
Here is my first attempt: https://github.com/skodak/htmlpurifier/compare/master...Cache_SerializerPermissions I have sent you a PULL request on the github too.
|
Re: Cache directory permissions setting January 13, 2011 09:01AM |
Admin Registered: 6 years ago Posts: 2,652 |
|
Re: Cache directory permissions setting January 13, 2011 09:09AM |
Registered: 2 years ago Posts: 5 |
Here it is squashed in a new branch https://github.com/skodak/htmlpurifier/tree/Cache_SerializerPermissions_onecommit Git is still relatively new to me, but I am learning to love it, thanks!
|
Re: Cache directory permissions setting January 13, 2011 06:29PM |
Admin Registered: 6 years ago Posts: 2,652 |
|
Re: Cache directory permissions setting January 13, 2011 06:37PM |
Registered: 2 years ago Posts: 5 |
|
Re: Cache directory permissions setting January 13, 2011 09:33PM |
Admin Registered: 6 years ago Posts: 2,652 |