From 37c94175806f0c75feb344124b7e5e884791f74d Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 15 Feb 2007 00:30:32 +0000 Subject: Allow all printable 7-bit ASCII characters in passwords --- lib/rbot/botuser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rbot') 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 -- cgit v1.2.3