newlines
This commit is contained in:
parent
6cf695be2e
commit
2d8b74f6a1
1 changed files with 1 additions and 1 deletions
2
farp.php
2
farp.php
|
@ -17,7 +17,7 @@
|
||||||
if (!is_null($_POST["signature"]) && strlen($_POST["signature"]) != 0) {
|
if (!is_null($_POST["signature"]) && strlen($_POST["signature"]) != 0) {
|
||||||
$signature = htmlspecialchars($_POST["signature"]);
|
$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
|
// write string back into the file
|
||||||
$myfile = fopen("posts.txt", "w") or die("Unable to write file!");
|
$myfile = fopen("posts.txt", "w") or die("Unable to write file!");
|
||||||
|
|
Reference in a new issue