]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Allow all printable 7-bit ASCII characters in passwords
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 15 Feb 2007 00:30:32 +0000 (00:30 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 15 Feb 2007 00:30:32 +0000 (00:30 +0000)
lib/rbot/botuser.rb

index c0041d7f916ac96a22428debb9e5cd031230a153..4e35e5f3acd239f66c524450aa0ae461aa588aed 100644 (file)
@@ -268,7 +268,7 @@ module Irc
           reset_password\r
         else\r
           begin\r
-            raise InvalidPassword, "#{pass} contains invalid characters" if pass !~ /^[A-Za-z0-9]+$/\r
+            raise InvalidPassword, "#{pass} contains invalid characters" if pass !~ /^[\x21-\x7e]+$/\r
             raise InvalidPassword, "#{pass} too short" if pass.length < 4\r
             @password = pass\r
           rescue InvalidPassword => e\r