[geeklog-cvs] Geeklog-1.x/system lib-webservices.php,1.38,1.39

Dirk Haun dhaun at qs1489.pair.com
Wed Jul 23 15:34:15 EDT 2008


Update of /cvsroot/geeklog/Geeklog-1.x/system
In directory qs1489.pair.com:/tmp/cvs-serv12341/system

Modified Files:
	lib-webservices.php 
Log Message:
Improved compatibility with AtomPub clients, e.g. MarsEdit


Index: lib-webservices.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-webservices.php,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** lib-webservices.php	28 Jun 2008 19:37:40 -0000	1.38
--- lib-webservices.php	23 Jul 2008 19:34:13 -0000	1.39
***************
*** 467,470 ****
--- 467,471 ----
      switch ($type) {
      case 'text':
+     case 'text/plain':
          $args['content'] = (string) $node->nodeValue;
          $args['content_type'] = 'text';
***************
*** 472,475 ****
--- 473,477 ----
  
      case 'html':
+     case 'text/html':
          $args['content'] = (string) $node->nodeValue;
          $args['content_type'] = 'html';
***************
*** 578,581 ****
--- 580,585 ----
                                  $args[$node->localName][$node->firstChild->localName] = $child_node->firstChild->nodeValue;
                              }
+                         } elseif ($child_node->nodeType == XML_CDATA_SECTION_NODE) {
+                             $args[$node->localName] = $child_node->nodeValue;
                          }
                      }




More information about the geeklog-cvs mailing list