[geeklog-cvs] Geeklog-1.x/system lib-webservices.php,1.36,1.37
Dirk Haun
dhaun at qs1489.pair.com
Sat May 31 17:42:29 EDT 2008
Update of /cvsroot/geeklog/Geeklog-1.x/system
In directory qs1489.pair.com:/tmp/cvs-serv76935
Modified Files:
lib-webservices.php
Log Message:
Added a workaround for the Yulup Atompub client that sometimes sends Text nodes in XHTML nodes
Index: lib-webservices.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-webservices.php,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** lib-webservices.php 1 May 2008 17:01:43 -0000 1.36
--- lib-webservices.php 31 May 2008 21:42:27 -0000 1.37
***************
*** 477,480 ****
--- 477,484 ----
}
$args['content_type'] = 'html'; // it's all the same to us ...
+ } elseif ($div->nodeType == XML_TEXT_NODE) {
+ // hack for Yulup which sometimes sends Text nodes within the XHTML
+ $args['content'] = trim((string) $node->nodeValue);
+ $args['content_type'] = 'html';
}
break;
More information about the geeklog-cvs
mailing list