Commit 88c6184c authored by Steven Wittens's avatar Steven Wittens

- #27864: Correctly distinguish 403s from 404s for nodes.

parent 7782b1ac
......@@ -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();
}
......
......@@ -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();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment