mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/uri/common.rb (unescape): skip '%' to make String#hex work
correctly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b11b2b498c
commit
4046a1cb92
2 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,12 @@
|
|||
Thu Sep 18 20:02:48 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* lib/uri/common.rb (unescape): skip '%' to make String#hex work
|
||||
correctly.
|
||||
|
||||
Thu Sep 18 19:43:04 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* st.c (new_size): raise RuntimeError when st_table is too big.
|
||||
[ruby-dev:36354]
|
||||
|
||||
Thu Sep 18 18:23:23 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
|
|
|
@ -227,7 +227,7 @@ module URI
|
|||
end
|
||||
|
||||
def unescape(str, escaped = @regexp[:ESCAPED])
|
||||
str.gsub(escaped) { [$&.hex].pack('U') }
|
||||
str.gsub(escaped) { [$&[1, 2].hex].pack('U') }
|
||||
end
|
||||
|
||||
@@to_s = Kernel.instance_method(:to_s)
|
||||
|
|
Loading…
Add table
Reference in a new issue