[BUGFIX] Remove Windows line breaks 33/59833/3
authorGuido Schmechel <guido.schmechel@brandung.de>
Sat, 2 Mar 2019 10:38:50 +0000 (11:38 +0100)
committerRalf Zimmermann <ralf.zimmermann@tritum.de>
Thu, 25 Apr 2019 08:21:18 +0000 (10:21 +0200)
In order to prevent a faulty configuration and silent output,
line breaks in the MetaData value are now also removed.

Resolves: #87821
Releases: master, 9.5
Change-Id: I243ce719474326dea24805695e27b793ba22ef6a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/59833
Tested-by: Björn Jacob <bjoern.jacob@tritum.de>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Ralf Zimmermann <ralf.zimmermann@tritum.de>
Reviewed-by: Björn Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Ralf Zimmermann <ralf.zimmermann@tritum.de>
typo3/sysext/form/Classes/Mvc/Persistence/FormPersistenceManager.php

index 92047ab..4f39312 100644 (file)
@@ -684,7 +684,7 @@ class FormPersistenceManager implements FormPersistenceManagerInterface
                 continue;
             }
 
-            $value = trim($value, ' \'"');
+            $value = trim($value, " '\"\r");
             $metaData[$key] = $value;
         }