phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] syncml syncml.php


From: Johan Gunnarsson
Subject: [Phpgroupware-cvs] syncml syncml.php
Date: Mon, 03 Sep 2007 15:23:06 +0000

CVSROOT:        /sources/phpgroupware
Module name:    syncml
Changes by:     Johan Gunnarsson <johang>       07/09/03 15:23:06

Modified files:
        .              : syncml.php 

Log message:
        Syntax error + clean up

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/syncml/syncml.php?cvsroot=phpgroupware&r1=1.5&r2=1.6

Patches:
Index: syncml.php
===================================================================
RCS file: /sources/phpgroupware/syncml/syncml.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- syncml.php  3 Sep 2007 12:42:17 -0000       1.5
+++ syncml.php  3 Sep 2007 15:23:06 -0000       1.6
@@ -7,7 +7,7 @@
         * @copyright Copyright (c) 2007 Free Software Foundation, Inc.
         * @license   GNU General Public License 3 or later
         * @package   syncml
-        * @version   $Id: syncml.php,v 1.5 2007/09/03 12:42:17 johang Exp $
+        * @version   $Id: syncml.php,v 1.6 2007/09/03 15:23:06 johang Exp $
         */
 
        ob_start();
@@ -62,6 +62,7 @@
 
        // the header
 
+
        $header = $parser->parse($post_input,
                new xml_offset_mapper(array('SYNCML', 'SYNCHDR')));
        $message->process_header($header);
@@ -82,10 +83,9 @@
 
        $response->print_response();
 
-       switch($_SERVER['CONTENT_TYPE'])
+       if($_SERVER['CONTENT_TYPE'] == 'application/vnd.syncml+wbxml')
        {
-               case 'application/vnd.syncml+wbxml':
-                       // remove the <?xml ... ?> tag
+               // remove the xml declaration tag
                        $xml = substr(ob_get_clean(), 38);
                        ob_start();
                        // replace some bogus FPI values




reply via email to

[Prev in Thread] Current Thread [Next in Thread]