From 8e910f344a7bdc13e1fffcf62098bf0d5c1ed991 Mon Sep 17 00:00:00 2001 From: Martin Ficzel Date: Thu, 18 Oct 2018 17:51:31 +0200 Subject: [PATCH] BUGFIX: Trim dummy image texts to avoid url-erros with single space arguments --- Classes/EelHelpers/DummyImageSourceHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/EelHelpers/DummyImageSourceHelper.php b/Classes/EelHelpers/DummyImageSourceHelper.php index 34921ae..d277d66 100644 --- a/Classes/EelHelpers/DummyImageSourceHelper.php +++ b/Classes/EelHelpers/DummyImageSourceHelper.php @@ -89,7 +89,7 @@ public function src(): string 'h' => $this->getCurrentHeight(), 'bg' => ($this->backgroundColor ?: '000'), 'fg' => ($this->foregroundColor ?: 'fff'), - 't' => ($this->text ?: $this->getCurrentWidth() . ' x ' . $this->getCurrentHeight()) + 't' => (trim($this->text ?: $this->getCurrentWidth() . ' x ' . $this->getCurrentHeight())) ] ); return $uri;