local file inclusion
This commit is contained in:
parent
60e0c7ba42
commit
af198950ca
@ -99,7 +99,7 @@
|
||||
|
||||
$name = trim(stripslashes(@$_POST['name']));
|
||||
$email = isset($_POST['email'])? trim($_POST['email']) : null;
|
||||
$url = isset($_POST['url'])? trim(stripslashes($_POST['url'])) : null;
|
||||
$url = isset($_POST['url'])? trim(stripslashes(htmlspecialchars($_POST['url']))) : null;
|
||||
|
||||
/*
|
||||
* check name
|
||||
|
@ -103,7 +103,8 @@
|
||||
if ($userid == null && ($user = user_loggedin())) {
|
||||
return $user;
|
||||
}
|
||||
if (file_exists($f = USERS_DIR . $userid.".php")) {
|
||||
if (!preg_match('![/\\.]!', $userid) &&
|
||||
file_exists($f = USERS_DIR . $userid.".php")) {
|
||||
include($f);
|
||||
|
||||
return $user;
|
||||
|
Loading…
x
Reference in New Issue
Block a user