fixed crosssitescripting on settings pagw
This commit is contained in:
@@ -87,11 +87,11 @@ function updateSettings() {
|
||||
`userID` = :userID
|
||||
");
|
||||
|
||||
$stmt->bindParam(":fname", $_POST["fname"]);
|
||||
$stmt->bindParam(":lname", $_POST["lname"]);
|
||||
$stmt->bindParam(":location", $_POST["location"]);
|
||||
$stmt->bindParam(":fname", test_input($_POST["fname"]));
|
||||
$stmt->bindParam(":lname", test_input($_POST["lname"]));
|
||||
$stmt->bindParam(":location", test_input($_POST["location"]));
|
||||
$stmt->bindParam(":bday", $_POST["bday"]);
|
||||
$stmt->bindParam(":bio", $_POST["bio"]);
|
||||
$stmt->bindParam(":bio", test_input($_POST["bio"]));
|
||||
$stmt->bindParam(":userID", $_SESSION["userID"]);
|
||||
|
||||
$stmt->execute();
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?php
|
||||
$settings = getSettings();
|
||||
//phpinfo();
|
||||
?>
|
||||
|
||||
<div class="content">
|
||||
|
||||
Reference in New Issue
Block a user