Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-09-30 10:40:43 +0300
committerJoas Schilling <coding@schilljs.com>2022-09-30 10:40:43 +0300
commit0642d17e4fee849bebbbcd1e85d39c87753942be (patch)
tree132e51daeb5ff804593ef8f74c4bb7739fa201ee
parent27ce4bd1a41c11ab4ffe076df50a5f42402c8cf2 (diff)
Fix URLs on reference resolvingbugfix/noid/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>
-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);