Commit 3fb36691 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Add trim() for string comparison

parent 6427ef49
Pipeline #4992 passed with stages
in 7 minutes and 3 seconds
...@@ -169,7 +169,7 @@ class tx_ter_api ...@@ -169,7 +169,7 @@ class tx_ter_api
); );
} }
if ((string)$extensionInfoData->infoData->uploadComment === '') { if (trim((string)$extensionInfoData->infoData->uploadComment) === '') {
throw new \T3o\Ter\Exception\NoUploadCommentException( throw new \T3o\Ter\Exception\NoUploadCommentException(
'You need to set an upload comment!', 'You need to set an upload comment!',
TX_TER_ERROR_UPLOADEXTENSION_NOUPLOADCOMMENT TX_TER_ERROR_UPLOADEXTENSION_NOUPLOADCOMMENT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment