Skip to content
Browse files

fix one instance for 1.9 characters

  • Loading branch information...
1 parent 27372f2 commit 120f4fda51c2b432a546c9af4abebddc9f74d86f @JustinLove JustinLove committed Nov 27, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/openid/store/filesystem.rb
View
3 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("")

0 comments on commit 120f4fd

Please sign in to comment.
Something went wrong with that request. Please try again.