[dev] [patch] sam ftp driver
Ben Chavet
ben at chavet.net
Fri Apr 23 15:27:09 PDT 2004
Attached is a patch that fixes the spamd_ftp driver to allow spaces in the
assigned values.
Modified:
sam/lib/Driver/spamd_ftp.php
--Ben
-------------- next part --------------
Index: spamd_ftp.php
===================================================================
RCS file: /repository/sam/lib/Driver/spamd_ftp.php,v
retrieving revision 1.4
diff -u -r1.4 spamd_ftp.php
--- spamd_ftp.php 13 Apr 2004 15:46:55 -0000 1.4
+++ spamd_ftp.php 23 Apr 2004 22:24:46 -0000
@@ -172,8 +172,12 @@
$return = array();
foreach($conf as $line) {
+ $value = '';
+ for ($i = 1; $i < sizeof($line); $i++) {
+ $value .= ' ' . $line[$i];
+ }
if (isset($line[1])) {
- $return[$this->_mapOptionToAttribute($line[0])] = $line[1];
+ $return[$this->_mapOptionToAttribute($line[0])] = trim($value);
}
}
return $return;
More information about the dev
mailing list