Permalink
Browse files

String#[] is obsolete since Ruby 1.9.

  • Loading branch information...
1 parent 8e979da commit 4e3f81b77403b68d95c7b26cac6e4d105c449c34 @authorNari authorNari committed Aug 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/openid/store/filesystem.rb
@@ -236,7 +236,7 @@ def filename_escape(s)
if @@FILENAME_ALLOWED.index(c)
filename_chunks << c
else
- filename_chunks << sprintf("_%02X", c[0])
+ filename_chunks << sprintf("_%02X", c.bytes.first)
end
end
filename_chunks.join("")

0 comments on commit 4e3f81b

Please sign in to comment.