Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
9a014043
Commit
9a014043
authored
Mar 01, 2006
by
Steven Wittens
Browse files
-
#50747
: RSS channel description is not according to spec
parent
514b12c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/common.inc
View file @
9a014043
...
...
@@ -659,7 +659,11 @@ function format_rss_channel($title, $link, $description, $items, $language = 'en
$output
=
"<channel>
\n
"
;
$output
.
=
' <title>'
.
check_plain
(
$title
)
.
"</title>
\n
"
;
$output
.
=
' <link>'
.
check_url
(
$link
)
.
"</link>
\n
"
;
$output
.
=
' <description>'
.
check_plain
(
$description
)
.
"</description>
\n
"
;
// The RSS 2.0 "spec" doesn't indicate HTML can be used in the description.
// We strip all HTML tags, but need to prevent double encoding from properly
// escaped source data (such as & becoming &amp;).
$output
.
=
' <description>'
.
check_plain
(
decode_entities
(
strip_tags
(
$description
)))
.
"</description>
\n
"
;
$output
.
=
' <language>'
.
check_plain
(
$language
)
.
"</language>
\n
"
;
foreach
(
$args
as
$key
=>
$value
)
{
$output
.
=
' <'
.
$key
.
'>'
.
check_plain
(
$value
)
.
"</
$key
>
\n
"
;
...
...
@@ -1339,4 +1343,4 @@ function page_set_cache() {
}
}
}
}
\ No newline at end of file
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment