In message <20041230012757.72333c9b.sheepman / tcn.zaq.ne.jp>
	on Thu, 30 Dec 2004 01:27:57 +0900,
	sheepman <sheepman / tcn.zaq.ne.jp> wrote:
> Index: htpasswd.rb
> ===================================================================
> RCS file: /src/ruby/lib/webrick/httpauth/htpasswd.rb,v
> retrieving revision 1.1
> diff -u -r1.1 htpasswd.rb
> --- htpasswd.rb 23 Jul 2003 16:51:36 -0000      1.1
> +++ htpasswd.rb 29 Dec 2004 16:15:33 -0000
> @@ -32,7 +32,15 @@
>            open(@path){|io|
>              while line = io.gets
>                line.chomp!
> -              user, pass = line.split(":")
> +              case line
> +              when %r!\A[^:]+:[a-zA-Z0-9./]{13}\z!
> +                user, pass = line.split(":")
> +              when /:\$/, /:{SHA}/
ここは、/:\{SHA}\/ だと思います。

-- 
神戸 隆博 / Takahiro Kambe