Parcourir la source

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>
tags/v26.0.0beta1
Joas Schilling il y a 1 an
Parent
révision
0642d17e4f
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      core/Controller/ReferenceApiController.php

+ 1
- 1
core/Controller/ReferenceApiController.php Voir le fichier

@@ -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);

Chargement…
Annuler
Enregistrer