diff options
author | Joas Schilling <coding@schilljs.com> | 2022-09-30 09:40:43 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-09-30 09:40:43 +0200 |
commit | 0642d17e4fee849bebbbcd1e85d39c87753942be (patch) | |
tree | 132e51daeb5ff804593ef8f74c4bb7739fa201ee /core | |
parent | 27ce4bd1a41c11ab4ffe076df50a5f42402c8cf2 (diff) | |
download | nextcloud-server-0642d17e4fee849bebbbcd1e85d39c87753942be.tar.gz nextcloud-server-0642d17e4fee849bebbbcd1e85d39c87753942be.zip |
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>
Diffstat (limited to 'core')
-rw-r--r-- | core/Controller/ReferenceApiController.php | 2 |
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); |