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
88c6184c
Commit
88c6184c
authored
Aug 05, 2005
by
Steven Wittens
Browse files
-
#27864
: Correctly distinguish 403s from 404s for nodes.
parent
7782b1ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/node.module
View file @
88c6184c
...
...
@@ -1671,6 +1671,9 @@ function node_page() {
drupal_set_title
(
$node
->
title
);
return
node_edit
(
arg
(
1
));
}
else
if
(
db_result
(
db_query
(
'SELECT nid FROM {node} WHERE nid = %d'
,
arg
(
1
))))
{
drupal_access_denied
();
}
else
{
drupal_not_found
();
}
...
...
@@ -1683,6 +1686,9 @@ function node_page() {
drupal_set_title
(
check_plain
(
$node
->
title
));
return
node_show
(
$node
,
arg
(
2
));
}
else
if
(
db_result
(
db_query
(
'SELECT nid FROM {node} WHERE nid = %d'
,
arg
(
1
))))
{
drupal_access_denied
();
}
else
{
drupal_not_found
();
}
...
...
modules/node/node.module
View file @
88c6184c
...
...
@@ -1671,6 +1671,9 @@ function node_page() {
drupal_set_title
(
$node
->
title
);
return
node_edit
(
arg
(
1
));
}
else
if
(
db_result
(
db_query
(
'SELECT nid FROM {node} WHERE nid = %d'
,
arg
(
1
))))
{
drupal_access_denied
();
}
else
{
drupal_not_found
();
}
...
...
@@ -1683,6 +1686,9 @@ function node_page() {
drupal_set_title
(
check_plain
(
$node
->
title
));
return
node_show
(
$node
,
arg
(
2
));
}
else
if
(
db_result
(
db_query
(
'SELECT nid FROM {node} WHERE nid = %d'
,
arg
(
1
))))
{
drupal_access_denied
();
}
else
{
drupal_not_found
();
}
...
...
Write
Preview
Supports
Markdown
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