Skip to content

Commit

Permalink
Merge pull request #34382 from nextcloud/backport/34339/stable25
Browse files Browse the repository at this point in the history
[stable25] Fix URLs on reference resolving
  • Loading branch information
blizzz authored Oct 3, 2022
2 parents 07ac478 + 14a59c4 commit 1b4c821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Controller/ReferenceApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function extract(string $text, bool $resolve = false, int $limit = 1): Da
* @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);
Expand Down

0 comments on commit 1b4c821

Please sign in to comment.