mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
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>
This commit is contained in:
parent
27ce4bd1a4
commit
0642d17e4f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue