From f5aaed23ab88abf7d8026916e676adc9a0947963 Mon Sep 17 00:00:00 2001 From: Naglfar Date: Sat, 20 Mar 2021 04:57:52 +0100 Subject: [PATCH] to remove new line characters from a DOS file --- includes/signup.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/signup.php b/includes/signup.php index c619c81..768ccfd 100644 --- a/includes/signup.php +++ b/includes/signup.php @@ -12,6 +12,9 @@ $tv = $_GET['tv']; // username passed lowercased $username = strtolower($username); +// strip new line characters from the end +$pubkey = trim($pubkey); + $from = 'From: www-data '; $destination_addr = "newuser@thunix.net"; $subject = "New User Registration";