From: Giuseppe Bilotta Date: Thu, 15 Feb 2007 00:30:32 +0000 (+0000) Subject: Allow all printable 7-bit ASCII characters in passwords X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=37c94175806f0c75feb344124b7e5e884791f74d;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git Allow all printable 7-bit ASCII characters in passwords --- diff --git a/lib/rbot/botuser.rb b/lib/rbot/botuser.rb index c0041d7f..4e35e5f3 100644 --- a/lib/rbot/botuser.rb +++ b/lib/rbot/botuser.rb @@ -268,7 +268,7 @@ module Irc reset_password else begin - raise InvalidPassword, "#{pass} contains invalid characters" if pass !~ /^[A-Za-z0-9]+$/ + raise InvalidPassword, "#{pass} contains invalid characters" if pass !~ /^[\x21-\x7e]+$/ raise InvalidPassword, "#{pass} too short" if pass.length < 4 @password = pass rescue InvalidPassword => e