From 120f4fda51c2b432a546c9af4abebddc9f74d86f Mon Sep 17 00:00:00 2001 From: Justin Love Date: Sun, 27 Nov 2011 16:47:02 -0600 Subject: [PATCH 1/2] fix one instance for 1.9 characters --- lib/openid/store/filesystem.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/openid/store/filesystem.rb b/lib/openid/store/filesystem.rb index e2993eea..f6b65861 100644 --- a/lib/openid/store/filesystem.rb +++ b/lib/openid/store/filesystem.rb @@ -236,7 +236,8 @@ def filename_escape(s) if @@FILENAME_ALLOWED.index(c) filename_chunks << c else - filename_chunks << sprintf("_%02X", c[0]) + n = c.respond_to?(:ord) ? c.ord : c[0] + filename_chunks << sprintf("_%02X", n) end end filename_chunks.join("") From a6c14b674ba8b133c3e184b2b8d32fc5b9447713 Mon Sep 17 00:00:00 2001 From: Justin Love Date: Sun, 27 Nov 2011 17:13:08 -0600 Subject: [PATCH 2/2] or-equal doesnt work with constants --- lib/openid/yadis/xrires.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/openid/yadis/xrires.rb b/lib/openid/yadis/xrires.rb index 233826b1..c9cf6e6c 100644 --- a/lib/openid/yadis/xrires.rb +++ b/lib/openid/yadis/xrires.rb @@ -13,7 +13,7 @@ class XRIHTTPError < StandardError; end class ProxyResolver - DEFAULT_PROXY ||= 'http://proxy.xri.net/' + DEFAULT_PROXY = 'http://proxy.xri.net/' unless defined?(DEFAULT_PROXY) def initialize(proxy_url=nil) if proxy_url