* Fix WBXML namespache issue (bug 3048)

This commit is contained in:
Jörg Lehrke 2011-10-15 22:46:28 +00:00
parent fa99456254
commit 38032d34fd
3 changed files with 9 additions and 9 deletions

View File

@ -138,12 +138,12 @@ define('RESPONSE_ATOMIC_RESPONSE_TOO_LARGE', 517);
define('NAME_SPACE_URI_SYNCML_1_0', 'syncml:syncml1.0');
define('NAME_SPACE_URI_SYNCML_1_1', 'syncml:syncml1.1');
define('NAME_SPACE_URI_SYNCML_1_2', 'syncml:syncml1.2');
define('NAME_SPACE_URI_METINF_1_0', 'syncml:metinf');
define('NAME_SPACE_URI_METINF_1_1', 'syncml:metinf');
define('NAME_SPACE_URI_METINF_1_2', 'syncml:metinf');
define('NAME_SPACE_URI_DEVINF_1_0', 'syncml:devinf');
define('NAME_SPACE_URI_DEVINF_1_1', 'syncml:devinf');
define('NAME_SPACE_URI_DEVINF_1_2', 'syncml:devinf');
define('NAME_SPACE_URI_METINF_1_0', 'syncml:metinf1.0');
define('NAME_SPACE_URI_METINF_1_1', 'syncml:metinf1.1');
define('NAME_SPACE_URI_METINF_1_2', 'syncml:metinf1.2');
define('NAME_SPACE_URI_DEVINF_1_0', 'syncml:devinf1.0');
define('NAME_SPACE_URI_DEVINF_1_1', 'syncml:devinf1.1');
define('NAME_SPACE_URI_DEVINF_1_2', 'syncml:devinf1.2');
define('CLIENT_SYNC_STARTED', 1);
define('CLIENT_SYNC_FINNISHED', 2);

View File

@ -27,7 +27,7 @@ class XML_WBXML_ContentHandler {
/**
* WBXML Version.
* 1, 2, or 3 supported
* 0, 1 or 2 supported
*/
var $_wbxmlVersion = 2;
@ -63,7 +63,7 @@ class XML_WBXML_ContentHandler {
function setVersion($v)
{
$this->_wbxmlVersion = 2;
$this->_wbxmlVersion = $v;
}
function getOutput()

View File

@ -145,7 +145,7 @@ class XML_WBXML_Decoder extends XML_WBXML_ContentHandler {
// Get Version Number from Section 5.4
// version = u_int8
// currently 1, 2 or 3
// currently 0, 1 or 2
$this->_wbxmlVersion = $this->getVersionNumber($wbxml);
#Horde::logMessage("WBXML[" . $this->_strpos . "] version " . $this->_wbxmlVersion, __FILE__, __LINE__, PEAR_LOG_DEBUG);