From: Evan Prodromou Date: Fri, 2 Oct 2009 19:46:00 +0000 (-0400) Subject: better handling of y response in deleteuser.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2d85d619074b69ff0d31249c45715af686b13986;p=quix0rs-gnu-social.git better handling of y response in deleteuser.php --- diff --git a/scripts/deleteuser.php b/scripts/deleteuser.php index 67aea7921c..52389123c5 100644 --- a/scripts/deleteuser.php +++ b/scripts/deleteuser.php @@ -57,7 +57,7 @@ if (have_option('i', 'id')) { if (!have_option('y', 'yes')) { print "About to PERMANENTLY delete user '{$user->nickname}' ({$user->id}). Are you sure? [y/N] "; $response = fgets(STDIN); - if (strtolower($response) != 'y') { + if (strtolower(trim($response)) != 'y') { print "Aborting.\n"; exit(0); }