mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/webrick/httpservlet/filehandler.rb: escape filename of index.
[ruby-dev:37768] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ee68e26859
commit
604f01f2b8
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Dec 6 16:02:15 2009 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* lib/webrick/httpservlet/filehandler.rb: escape filename of index.
|
||||
[ruby-dev:37768]
|
||||
|
||||
Sun Dec 6 00:35:16 2009 Alexander Zavorine <alexandre.zavorine@nokia.com>
|
||||
|
||||
* symbian/setup (config.h): EXECUTABLE_EXTS moved from
|
||||
|
|
|
@ -412,7 +412,7 @@ module WEBrick
|
|||
else
|
||||
dname = name
|
||||
end
|
||||
s = " <A HREF=\"#{HTTPUtils::escape(name)}\">#{dname}</A>"
|
||||
s = " <A HREF=\"#{HTTPUtils::escape(name)}\">#{HTMLUtils::escape(dname)}</A>"
|
||||
s << " " * (30 - dname.bytesize)
|
||||
s << (time ? time.strftime("%Y/%m/%d %H:%M ") : " " * 22)
|
||||
s << (size >= 0 ? size.to_s : "-") << "\n"
|
||||
|
|
Loading…
Add table
Reference in a new issue