From 13fe7ca18a407f61627696651f67ecc584e6f5ca Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 3 Aug 2020 12:35:57 +0200 Subject: [PATCH] Add cache buster for pageLogo --- wcfsetup/install/files/lib/data/style/StyleAction.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/style/StyleAction.class.php b/wcfsetup/install/files/lib/data/style/StyleAction.class.php index a78e4e2cee..ec0878bdd8 100644 --- a/wcfsetup/install/files/lib/data/style/StyleAction.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleAction.class.php @@ -187,7 +187,7 @@ class StyleAction extends AbstractDatabaseObjectAction implements IToggleAction if ($file !== null) { $fileLocation = $file->getLocation(); $extension = pathinfo($file->getFilename(), PATHINFO_EXTENSION); - $newName = $type.'.'.$extension; + $newName = $type.'-'.\bin2hex(\random_bytes(4)).'.'.$extension; $newLocation = $style->getAssetPath().$newName; rename($fileLocation, $newLocation); $this->parameters['variables'][$type] = $newName; -- 2.20.1