summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-10-02 14:34:41 +0200
committerGitHub <noreply@github.com>2022-10-02 14:34:41 +0200
commit754cef369b694c5a58f006ceafe7e9a943c7770f (patch)
treebb4530cc7513d6a8e555508778cc29cfa7acf0be /core
parent663751cf78241eb51a32a96223dffaa4d7cb2ec3 (diff)
parent0642d17e4fee849bebbbcd1e85d39c87753942be (diff)
downloadnextcloud-server-754cef369b694c5a58f006ceafe7e9a943c7770f.tar.gz
nextcloud-server-754cef369b694c5a58f006ceafe7e9a943c7770f.zip
Merge pull request #34339 from nextcloud/bugfix/noid/fix-urls-on-reference-resolving
Fix URLs on reference resolving
Diffstat (limited to 'core')
-rw-r--r--core/Controller/ReferenceApiController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/ReferenceApiController.php b/core/Controller/ReferenceApiController.php
index b9706796460..266532113d8 100644
--- a/core/Controller/ReferenceApiController.php
+++ b/core/Controller/ReferenceApiController.php
@@ -61,7 +61,7 @@ class ReferenceApiController extends \OCP\AppFramework\OCSController {
* @NoAdminRequired
*/
public function resolveOne(string $reference): DataResponse {
- $resolvedReference = $this->referenceManager->resolveReference($reference);
+ $resolvedReference = $this->referenceManager->resolveReference(trim($reference));
$response = new DataResponse(['references' => [ $reference => $resolvedReference ]]);
$response->cacheFor(3600, false, true);