[BUGFIX] Configuration property baseUrl might contain whitespaces
authorOliver Hader <oliver@typo3.org>
Wed, 18 Jan 2012 13:58:04 +0000 (14:58 +0100)
committerOliver Hader <oliver@typo3.org>
Wed, 18 Jan 2012 14:39:31 +0000 (15:39 +0100)
Classes/Driver/WebDavDriver.php
Configuration/FlexForm/WebDavDriverFlexForm.xml

index c85e807..b85dde5 100644 (file)
@@ -25,6 +25,8 @@ class Tx_FalWebdav_Driver_WebDavDriver extends t3lib_file_Driver_AbstractDriver
        protected $davClient;
 
        public function __construct(array $configuration = array()) {
+               // @†odo Iterate through all string properties and trim them...
+               $configuration['baseUrl'] = trim($configuration['baseUrl']);
                parent::__construct($configuration);
        }
 
index 61a55cb..4b19c12 100644 (file)
@@ -12,6 +12,7 @@
                                        <config>
                                                <type>input</type>
                                                <default>http://user:pass@webdav.domain.com/path/</default>
+                                               <eval>trim</eval>
                                                <size>30</size>
                                        </config>
                                </TCEforms>