diff options
author | Julien Veyssier <eneiluj@posteo.net> | 2021-12-28 20:06:50 +0300 |
---|---|---|
committer | Julien Veyssier <eneiluj@posteo.net> | 2022-01-03 12:27:39 +0300 |
commit | 342952d2c60d2ac82ec13afe2722c6603fdfef4f (patch) | |
tree | 01b8bbfb0614956debeaff412aedae4e479862b2 /lib | |
parent | f65698a7f81a7afbb7848539295892b6b49a7172 (diff) |
fix some CI errors
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/ImageController.php | 2 | ||||
-rw-r--r-- | lib/Service/ImageService.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/ImageController.php b/lib/Controller/ImageController.php index 200119cd4..c762328d0 100644 --- a/lib/Controller/ImageController.php +++ b/lib/Controller/ImageController.php @@ -252,7 +252,7 @@ class ImageController extends Controller { ? new DataDisplayResponse( $imageFile->getContent(), Http::STATUS_OK, - ['Content-Type' => $this->mimeTypeDetector->getSecureMimeType($imageFile->getMimeType())] + ['Content-Type' => $this->mimeTypeDetector->getSecureMimeType($imageFile->getMimeType())] ) : new DataDisplayResponse('', Http::STATUS_NOT_FOUND); } catch (Exception $e) { diff --git a/lib/Service/ImageService.php b/lib/Service/ImageService.php index 7ef5742c9..31b189a19 100644 --- a/lib/Service/ImageService.php +++ b/lib/Service/ImageService.php @@ -565,7 +565,7 @@ class ImageService { PREG_SET_ORDER ); return array_map(static function (array $match) { - return urldecode($match[1]) ?? null; + return urldecode($match[1]); }, $matches); } |