Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
300
Merge Requests
300
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
88c6184c
Commit
88c6184c
authored
Aug 05, 2005
by
Steven Wittens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-
#27864
: Correctly distinguish 403s from 404s for nodes.
parent
7782b1ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
modules/node.module
modules/node.module
+6
-0
modules/node/node.module
modules/node/node.module
+6
-0
No files found.
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
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