This commit is contained in:
awesomeuser 2023-08-04 16:31:26 +00:00
parent 6cf695be2e
commit 2d8b74f6a1

View file

@ -17,7 +17,7 @@
if (!is_null($_POST["signature"]) && strlen($_POST["signature"]) != 0) {
$signature = htmlspecialchars($_POST["signature"]);
}
$content = $signature . "<br>UTC " . date("Y/m/d H:i") . "<br>" . htmlspecialchars($_POST["image-bits"]) . "<br>" . $content;
$content = nl2br($signature . "\nUTC " . date("Y/m/d H:i") . "\n" . htmlspecialchars($_POST["image-bits"]) . "\n" . $content);
// write string back into the file
$myfile = fopen("posts.txt", "w") or die("Unable to write file!");