From bb023cf0f0822fa2b4247ba73f858d4d73cb15c5 Mon Sep 17 00:00:00 2001 From: fengtan Date: Mon, 27 Jul 2026 11:08:14 -0400 Subject: [PATCH] Replace overly permissive 0777 cache permissions with 0775. --- lib/Caxy/HtmlDiff/AbstractDiff.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Caxy/HtmlDiff/AbstractDiff.php b/lib/Caxy/HtmlDiff/AbstractDiff.php index ac4fff9..fe68cd3 100644 --- a/lib/Caxy/HtmlDiff/AbstractDiff.php +++ b/lib/Caxy/HtmlDiff/AbstractDiff.php @@ -140,7 +140,7 @@ public function initPurifier($defaultPurifierSerializerCache = null) // Cache.SerializerPermissions defaults to 0744. // This setting allows the cache files to be deleted by any user, as they are typically // created by the web/php user (www-user, php-fpm, etc.) - $HTMLPurifierConfig->set('Cache.SerializerPermissions', 0777); + $HTMLPurifierConfig->set('Cache.SerializerPermissions', 0775); $this->purifier = new HTMLPurifier($HTMLPurifierConfig); }