#3 _convertToAny patches

open
nobody
None
5
2007-04-11
2007-04-11
danielkushner
No

Index: SforceBaseClient.php

--- SforceBaseClient.php (revision 490)
+++ SforceBaseClient.php (working copy)
@@ -278,7 +278,7 @@
private function _convertToAny($fields) {
$anyString = '';
foreach ($fields as $key => $value) {
- $anyString = $anyString . '<' . $key . '>' . $value . '</' . $key . '>';
+ $anyString = $anyString . '<' . $key . '>' . htmlentities($value) . '</' . $key . '>';
}
return $anyString;
}
Index: SforceBaseClient.php
===================================================================
--- SforceBaseClient.php (revision 495)
+++ SforceBaseClient.php (working copy)
@@ -278,6 +278,9 @@
private function _convertToAny($fields) {
$anyString = '';
foreach ($fields as $key => $value) {
+ if ($value === false) {
+ $value = '0';
+ }
$anyString = $anyString . '<' . $key . '>' . htmlentities($value) . '</' . $key . '>';
}
return $anyString;

Discussion