Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feeds
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
feeds
Commits
f2a1d53e
Commit
f2a1d53e
authored
8 years ago
by
megachriz
Committed by
MegaChriz
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue #2704171 by MegaChriz: Fixed parse RSS feeds that contain additional whitespace.
parent
11697a53
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/common_syndication_parser.inc
+4
-0
4 additions, 0 deletions
libraries/common_syndication_parser.inc
with
4 additions
and
0 deletions
libraries/common_syndication_parser.inc
+
4
−
0
View file @
f2a1d53e
...
...
@@ -19,6 +19,10 @@
* stdClass The structured datas extracted from the feed.
*/
function
common_syndication_parser_parse
(
$string
)
{
// SimpleXML can only deal with XML declaration at the start of the document,
// so remove any surrounding whitespace.
$string
=
trim
(
$string
);
@
$xml
=
simplexml_load_string
(
$string
,
NULL
,
LIBXML_NOERROR
|
LIBXML_NOWARNING
|
LIBXML_NOCDATA
);
// Got a malformed XML.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment