- Patch #43818 by Derek: make user/0 result in a 404.

4.7.x
Dries Buytaert 2006-04-27 05:43:31 +00:00
parent 7c941aa5dc
commit adb88830d8
2 changed files with 2 additions and 2 deletions

View File

@ -776,7 +776,7 @@ function user_menu($may_cache) {
'weight' => 10);
}
else {
if (arg(0) == 'user' && is_numeric(arg(1))) {
if (arg(0) == 'user' && is_numeric(arg(1)) && arg(1) > 0) {
$account = user_load(array('uid' => arg(1)));
if ($user !== FALSE) {

View File

@ -776,7 +776,7 @@ function user_menu($may_cache) {
'weight' => 10);
}
else {
if (arg(0) == 'user' && is_numeric(arg(1))) {
if (arg(0) == 'user' && is_numeric(arg(1)) && arg(1) > 0) {
$account = user_load(array('uid' => arg(1)));
if ($user !== FALSE) {