summaryrefslogtreecommitdiffstats
path: root/apps/files/controller
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-08-05 13:21:04 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-08-05 13:21:04 +0200
commit2128bd69def58258a0f020d2031f44615b6b3ed5 (patch)
treebceb21b119d1d312e51248324d9b564cda44b348 /apps/files/controller
parenta70f145d71808204193d3e1d63ad94bcf849b700 (diff)
downloadnextcloud-server-2128bd69def58258a0f020d2031f44615b6b3ed5.tar.gz
nextcloud-server-2128bd69def58258a0f020d2031f44615b6b3ed5.zip
No need to url decode the file
Diffstat (limited to 'apps/files/controller')
-rw-r--r--apps/files/controller/apicontroller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/controller/apicontroller.php b/apps/files/controller/apicontroller.php
index 0cc222d7ce9..494d97db7a6 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 {