summaryrefslogtreecommitdiff
path: root/scripts/deleteuser.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-10-02 15:46:00 -0400
committerEvan Prodromou <evan@status.net>2009-10-02 15:46:00 -0400
commit2d85d619074b69ff0d31249c45715af686b13986 (patch)
tree514982a7f6221c88ed0e13d4c5a5cf9eb37cebaa /scripts/deleteuser.php
parent54b22c0c0bb1e7f5fbbcf9035219b5ed07e1b80c (diff)
better handling of y response in deleteuser.php
Diffstat (limited to 'scripts/deleteuser.php')
-rw-r--r--scripts/deleteuser.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/deleteuser.php b/scripts/deleteuser.php
index 67aea7921..52389123c 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);
}