Sfoglia il codice sorgente

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 1 anno fa
parent
commit
0642d17e4f
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      core/Controller/ReferenceApiController.php

+ 1
- 1
core/Controller/ReferenceApiController.php Vedi File

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

Loading…
Annulla
Salva