Add validation to avoid XSS in the login page
This commit is contained in:
@@ -28,7 +28,7 @@ $aFields = array();
|
||||
if (!isset($_GET['u'])) {
|
||||
$aFields['URL'] = '';
|
||||
} else {
|
||||
$aFields['URL'] = urldecode($_GET['u']);
|
||||
$aFields['URL'] = urldecode(htmlentities($_GET['u']));
|
||||
}
|
||||
|
||||
if (!isset($_SESSION['G_MESSAGE'])) {
|
||||
|
||||
Reference in New Issue
Block a user