[geeklog-cvs] Geeklog-SoC: Ported AtomPub compatibility improvements over from...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Thu Jul 24 05:44:16 EDT 2008
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/7c3c7a6924af
changeset: 6229:7c3c7a6924af
user: dirk at prospero.local
date: Thu Jul 24 11:44:00 2008 +0200
description:
Ported AtomPub compatibility improvements over from the Trunk
diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
system/lib-webservices.php | 6 +++++-
diffs (35 lines):
diff -r 7de5a7ba5006 -r 7c3c7a6924af system/lib-webservices.php
--- a/system/lib-webservices.php Tue Jul 22 21:46:21 2008 +0100
+++ b/system/lib-webservices.php Thu Jul 24 11:44:00 2008 +0200
@@ -29,7 +29,7 @@
// | |
// +---------------------------------------------------------------------------+
//
-// $Id: lib-webservices.php,v 1.37 2008/05/31 21:42:27 dhaun Exp $
+// $Id: lib-webservices.php,v 1.37.2.1 2008/07/24 09:40:35 dhaun Exp $
if (strpos ($_SERVER['PHP_SELF'], 'lib-webservices.php') !== false) {
die ('This file can not be used on its own!');
@@ -456,11 +456,13 @@
switch ($type) {
case 'text':
+ case 'text/plain':
$args['content'] = (string) $node->nodeValue;
$args['content_type'] = 'text';
break;
case 'html':
+ case 'text/html':
$args['content'] = (string) $node->nodeValue;
$args['content_type'] = 'html';
break;
@@ -567,6 +569,8 @@
if ($child_node->firstChild->nodeType == XML_TEXT_NODE) {
$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