#57 ✓resolved
Masayoshi Takahashi

[PATCH] Rack::Utils::escape error for multibyte characters in Ruby 1.9.1

Reported by Masayoshi Takahashi | June 24th, 2009 @ 07:32 PM

Rack::Utils::escape use String#size, not Rack::Utils::bytesize. String#size for multibyte characters is different between 1.8 and 1.9. So multibyte characters cannot be escaped correctly.

I made a test that be broken in 1.9 and patch for rack/utils.rb.

http://github.com/takahashim/rack/commit/15179f676514ef33b9083bc156...

original patch(in Japanese):
http://blog.livedoor.jp/faulist/archives/1219486.html

Thanks in advance,

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages