From 2128bd69def58258a0f020d2031f44615b6b3ed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Wed, 5 Aug 2015 13:21:04 +0200 Subject: [PATCH] No need to url decode the file --- apps/files/controller/apicontroller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/controller/apicontroller.php b/apps/files/controller/apicontroller.php index 0cc222d7ce..494d97db7a 100644 --- a/apps/files/controller/apicontroller.php +++ b/apps/files/controller/apicontroller.php @@ -78,7 +78,7 @@ class ApiController extends Controller { return new DataResponse(['message' => 'Requested size must be numeric and a positive value.'], Http::STATUS_BAD_REQUEST); } - $preview = $this->previewManager->createPreview('files/'.urldecode($file), $x, $y, true); + $preview = $this->previewManager->createPreview('files/'.$file, $x, $y, true); if ($preview->valid()) { return new DataDisplayResponse($preview->data(), Http::STATUS_OK, ['Content-Type' => 'image/png']); } else {