Check `is_readable()` in UserAvatarImporter
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 9 Feb 2022 11:31:29 +0000 (12:31 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 9 Feb 2022 11:31:29 +0000 (12:31 +0100)
wcfsetup/install/files/lib/system/importer/UserAvatarImporter.class.php

index 2a4bcdc87e7616c9005429f386b0915458ba3ceb..1fd502941d34a7f1fc1372048cc7369019368e59 100644 (file)
@@ -29,7 +29,7 @@ class UserAvatarImporter extends AbstractImporter
     public function import($oldID, array $data, array $additionalData = [])
     {
         // check file location
-        if (!@\file_exists($additionalData['fileLocation'])) {
+        if (!\is_readable($additionalData['fileLocation'])) {
             return 0;
         }