[geeklog-hg] geeklog: make sure a list of namespaces starts with a blank to p...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Aug 2 12:36:51 EDT 2014
changeset 9537:23d1fb5054da
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/23d1fb5054da
user: Dirk Haun <dirk at haun-online.de>
date: Sat Aug 02 18:28:54 2014 +0200
description:
make sure a list of namespaces starts with a blank to prevent parser errors in RSS, RDF, and Atom feeds (bug #1776)
diffstat:
system/classes/syndication/feedparserbase.class.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r 5b9c183325c7 -r 23d1fb5054da system/classes/syndication/feedparserbase.class.php
--- a/system/classes/syndication/feedparserbase.class.php Sat Jul 12 10:24:40 2014 -0400
+++ b/system/classes/syndication/feedparserbase.class.php Sat Aug 02 18:28:54 2014 +0200
@@ -239,11 +239,11 @@
*/
protected function _injectNamespaces()
{
- $xml = ' ';
+ $xml = '';
if (count($this->namespaces) > 0) {
$this->namespaces = array_unique($this->namespaces);
- $xml = implode(' ', $this->namespaces);
+ $xml = ' ' . implode(' ', $this->namespaces);
}
return $xml;
More information about the geeklog-cvs
mailing list