[sync] XML_WBXML/WBXML/ContentHandler.php patch

Karsten Fourmont fourmont at gmx.de
Mon Mar 28 04:40:48 PST 2005


This is a multi-part message in MIME format.
--------------090702090008010303060203
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

here's the patch for Contenthandler.php. Just one single line to avoid 
creating empty xmlns="" tags:

-        if ((!$currentUri) || ($currentUri != $uri)) {
+        if (((!$currentUri) || ($currentUri != $uri)) && $uri) {
              $this->_output .= ' xmlns="' . $uri . '"';


Seems pretty OK to me, but I didn't want to commit it without asking 
first. Contenthandler may be used at various other places, too. Any 
objections?

Cheers,
  Karsten


--------------090702090008010303060203
Content-Disposition: inline;
 filename="diff.txt"
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

An embedded and charset-unspecified text was scrubbed...
Name: diff.txt
Url: http://lists.horde.org/archives/sync/attachments/20050328/b027227e/diff.txt

--------------090702090008010303060203--


More information about the sync mailing list