Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
fae3c986
Commit
fae3c986
authored
Sep 5, 2012
by
catch
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1410260
by swentel, mojzis, droplet, pingers: Fixed rss.xml/whatever triggers PHP error.
parent
3c0da100
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/modules/node/lib/Drupal/node/Tests/NodeRSSContentTest.php
+4
-0
4 additions, 0 deletions
...modules/node/lib/Drupal/node/Tests/NodeRSSContentTest.php
core/modules/node/node.module
+3
-0
3 additions, 0 deletions
core/modules/node/node.module
with
7 additions
and
0 deletions
core/modules/node/lib/Drupal/node/Tests/NodeRSSContentTest.php
+
4
−
0
View file @
fae3c986
...
...
@@ -74,5 +74,9 @@ function testNodeRSSContent() {
$this
->
drupalGet
(
"node/
$node->nid
"
);
$this
->
assertNoText
(
$rss_only_content
,
t
(
'Node content designed for RSS doesn\'t appear when viewing node.'
));
// Check that the node feed page does not try to interpret additional path
// components as arguments for node_feed() and returns default content.
$this
->
drupalGet
(
'rss.xml/'
.
$this
->
randomName
()
.
'/'
.
$this
->
randomName
());
$this
->
assertText
(
$rss_only_content
,
t
(
'Ignore page arguments when delivering rss.xml.'
));
}
}
This diff is collapsed.
Click to expand it.
core/modules/node/node.module
+
3
−
0
View file @
fae3c986
...
...
@@ -1901,6 +1901,9 @@ function node_menu() {
$items
[
'rss.xml'
]
=
array
(
'title'
=>
'RSS feed'
,
'page callback'
=>
'node_feed'
,
// Pass a FALSE and array argument to ensure that additional path components
// are not passed to node_feed().
'page arguments'
=>
array
(
FALSE
,
array
()),
'access arguments'
=>
array
(
'access content'
),
'type'
=>
MENU_CALLBACK
,
);
...
...
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