diff options
author | Evan Prodromou <evan@status.net> | 2009-10-02 15:46:00 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-10-02 15:46:00 -0400 |
commit | 2d85d619074b69ff0d31249c45715af686b13986 (patch) | |
tree | 514982a7f6221c88ed0e13d4c5a5cf9eb37cebaa | |
parent | 54b22c0c0bb1e7f5fbbcf9035219b5ed07e1b80c (diff) |
better handling of y response in deleteuser.php
-rw-r--r-- | scripts/deleteuser.php | 2 |
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); } |