Hello,

The problem is that if you load a non-existing node, drupal silently renders the home page rather than issuing a "file not found" page.

The problem is in node.module, line 1174:

if (arg(0) == 'node' && is_numeric(arg(1))) {
$node = node_load(arg(1));
if ($node->nid) {

[...]

}
}

All it needs, is this at the end of the if:

} else {
drupal_not_found();
}
}

...why isn't this there in the first place? If a node isn't there... well, it isn't there, and a 404 should be returned.

Thanks,

Merc.

Comments

stevenpatz’s picture

traxer’s picture

This seems to be fixed on April 18th (published in D5.2 on July 26th). Are you sure you are using D5.2?

traxer’s picture

Status: Active » Postponed (maintainer needs more info)
mercmobily’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Hi,

This was indeed fixed.
Sorry.

Merc.