зеркало из https://github.com/github/ruby.git
* 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:
Родитель
ee68e26859
Коммит
604f01f2b8
|
@ -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"
|
||||
|
|
Загрузка…
Ссылка в новой задаче