Skip to content

Commit

Permalink
fix one instance for 1.9 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinLove committed Nov 27, 2011
1 parent 27372f2 commit 120f4fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/openid/store/filesystem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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("")
Expand Down

0 comments on commit 120f4fd

Please sign in to comment.