gunnar: server/php-kolab/Kolab_Filter/Filter Filter.php,1.6,1.7

cvs at kolab.org cvs at kolab.org
Tue Feb 12 10:54:39 CET 2008


Author: gunnar

Update of /kolabrepository/server/php-kolab/Kolab_Filter/Filter
In directory doto:/tmp/cvs-serv30974/php-kolab/Kolab_Filter/Filter

Modified Files:
	Filter.php 
Log Message:
Reverted part of yesterday fixes. Otherwise the option parsing in the Kolab filters are not correct. Adjusted unit test to check for that.

Index: Filter.php
===================================================================
RCS file: /kolabrepository/server/php-kolab/Kolab_Filter/Filter/Filter.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- Filter.php	11 Feb 2008 17:34:43 -0000	1.6
+++ Filter.php	12 Feb 2008 09:54:37 -0000	1.7
@@ -255,15 +255,15 @@
         }
         $this->_recipients = $recipients;
 
-        if (isset($options['c'])) {
+        if (!empty($options['c'])) {
             $this->_client_address = $options['c'];
         }
         
-        if (isset($options['h'])) {
+        if (!empty($options['h'])) {
             $this->_fqhostname = strtolower($options['h']);
         }
         
-        if (isset($options['u'])) {
+        if (!empty($options['u'])) {
             $this->_sasl_username = strtolower($options['u']);
         }
     }





More information about the commits mailing list