Skip to content

Commit

Permalink
BUGFIX: Trim dummy image texts to avoid url-erros with single space a…
Browse files Browse the repository at this point in the history
…rguments
  • Loading branch information
mficzel committed Oct 18, 2018
1 parent 117eb7e commit 8e910f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/EelHelpers/DummyImageSourceHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8e910f3

Please sign in to comment.