to remove new line characters from a DOS file

This commit is contained in:
Blade of Darkness 2021-03-20 04:57:52 +01:00
parent d36f10189d
commit f5aaed23ab
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,9 @@ $tv = $_GET['tv'];
// username passed lowercased // username passed lowercased
$username = strtolower($username); $username = strtolower($username);
// strip new line characters from the end
$pubkey = trim($pubkey);
$from = 'From: www-data <www-data@thunix.net>'; $from = 'From: www-data <www-data@thunix.net>';
$destination_addr = "newuser@thunix.net"; $destination_addr = "newuser@thunix.net";
$subject = "New User Registration"; $subject = "New User Registration";