avoid rather nasty potential XSS vulnerability
This commit is contained in:
parent
9b5afb0f7e
commit
bea964e517
@ -97,8 +97,8 @@
|
||||
$name = $user['userid'];
|
||||
} else {
|
||||
|
||||
$name = trim(stripslashes(@$_POST['name']));
|
||||
$email = isset($_POST['email'])? trim($_POST['email']) : null;
|
||||
$name = trim(htmlspecialchars(@$_POST['name']));
|
||||
$email = isset($_POST['email'])? trim(htmlspecialchars($_POST['email'])) : null;
|
||||
$url = isset($_POST['url'])? trim(stripslashes(htmlspecialchars($_POST['url']))) : null;
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user