summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-08-19 09:59:14 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-08-19 09:59:14 +0200
commit0b37004808c22792dab350eebfc763db6408b440 (patch)
tree9a27312dbc69d6272a45cd87aba030ba1bb73abe
parent9f6c33abe9cb471f0201efcdd01818048658c4eb (diff)
parent2128bd69def58258a0f020d2031f44615b6b3ed5 (diff)
downloadnextcloud-server-0b37004808c22792dab350eebfc763db6408b440.tar.gz
nextcloud-server-0b37004808c22792dab350eebfc763db6408b440.zip
Merge pull request #18076 from owncloud/fix-thumbnail-api-master
No need to url decode the file
-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 {