forked from GNUsocial/gnu-social
better handling of y response in deleteuser.php
This commit is contained in:
parent
54b22c0c0b
commit
2d85d61907
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user