Skip to content

Commit 0642d17

Browse files
committed
Fix URLs on reference resolving
The vue-richtext app currently sends leading spaces if they are in the text. Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 27ce4bd commit 0642d17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/Controller/ReferenceApiController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function extract(string $text, bool $resolve = false, int $limit = 1): Da
6161
* @NoAdminRequired
6262
*/
6363
public function resolveOne(string $reference): DataResponse {
64-
$resolvedReference = $this->referenceManager->resolveReference($reference);
64+
$resolvedReference = $this->referenceManager->resolveReference(trim($reference));
6565

6666
$response = new DataResponse(['references' => [ $reference => $resolvedReference ]]);
6767
$response->cacheFor(3600, false, true);

0 commit comments

Comments
 (0)