This commit is contained in:
Frankie B 2022-10-02 17:28:45 +00:00
parent e6b42b8f33
commit 8f756be28b

View file

@ -23,7 +23,7 @@
} else { } else {
$db = new PDO("sqlite:/mnt/data1/webdata/floppydisk/guestbook.db"); $db = new PDO("sqlite:/mnt/data1/webdata/floppydisk/guestbook.db");
$name = $_POST["name"]; $name = $_POST["name"];
$msg = htmlspecialchars($_POST["message"]); $msg = strip_tags($_POST["message"]);
$showinfo = isset($_POST["showinfo"]) ? true : false; $showinfo = isset($_POST["showinfo"]) ? true : false;
$showip = isset($_POST["showip"]) ? true : false; $showip = isset($_POST["showip"]) ? true : false;
$ip = $_SERVER['REMOTE_ADDR']; $ip = $_SERVER['REMOTE_ADDR'];