[macruby-changes] [4125] MacRuby/trunk/lib/webrick/httpauth/htpasswd.rb

source_changes at macosforge.org source_changes at macosforge.org
Wed May 19 12:31:43 PDT 2010


Revision: 4125
          http://trac.macosforge.org/projects/ruby/changeset/4125
Author:   martinlagardette at apple.com
Date:     2010-05-19 12:31:39 -0700 (Wed, 19 May 2010)
Log Message:
-----------
Fix a regex in webrick

Modified Paths:
--------------
    MacRuby/trunk/lib/webrick/httpauth/htpasswd.rb

Modified: MacRuby/trunk/lib/webrick/httpauth/htpasswd.rb
===================================================================
--- MacRuby/trunk/lib/webrick/httpauth/htpasswd.rb	2010-05-19 07:14:38 UTC (rev 4124)
+++ MacRuby/trunk/lib/webrick/httpauth/htpasswd.rb	2010-05-19 19:31:39 UTC (rev 4125)
@@ -35,7 +35,8 @@
               case line
               when %r!\A[^:]+:[a-zA-Z0-9./]{13}\z!
                 user, pass = line.split(":")
-              when /:\$/, /:{SHA}/
+              # XXX MacRuby needs the curly braces to be escaped
+              when /:\$/, /:\{SHA\}/
                 raise NotImplementedError,
                       'MD5, SHA1 .htpasswd file not supported'
               else
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100519/eae5db8c/attachment.html>


More information about the macruby-changes mailing list