Bug #8425
closed
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r40848.
wind, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
webrick: fix non-ascii escape bugs
- lib/webrick/htmlutils.rb (WEBrick::HTMLUtils#escape): replace HTML
meta chars even in non-ascii string. [Bug #8425] [ruby-core:55052]
- lib/webrick/httputils.rb (WEBrick::HTTPUtils#{_escape,_unescape}):
fix %-escape encodings. [Bug #8425] [ruby-core:55052]
- Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN to 1.9.3: REQUIRED, 2.0.0: REQUIRED
@nobu (Nobuyoshi Nakada),
webrick\httputils.rb
def _unescape(str, regex)
str = str.b
str.gsub!(regex) {$1.hex.chr}
# encoding of %-unescaped string is unknown
str
end
_unescape return ASCII-8BIT str, may be improper?
can you test firefox on similar dir '/tmp/1/Uni1/2/Uni2/' ?
btw, webrick\httpservlet\filehandler.rb
list.each{ |name, time, size|
if name == ".."
dname = "Parent Directory"
The delete line has a bug, The meaning all file has add '..', even filename short 25
- Backport changed from 1.9.3: REQUIRED, 2.0.0: REQUIRED to 1.9.3: DONE, 2.0.0: REQUIRED
backported into ruby_1_9_3 at r44934.
- Backport changed from 1.9.3: DONE, 2.0.0: REQUIRED to 1.9.3: DONE, 2.0.0: DONE
r40830 and r40848 were backported to ruby_2_0_0 at r45012.
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0