better handling of y response in deleteuser.php

This commit is contained in:
Evan Prodromou 2009-10-02 15:46:00 -04:00
parent 54b22c0c0b
commit 2d85d61907
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}