mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/cgi.rb (CGI::out): specify -m0 to disable MIME decode. a
patch from Fujioka <fuj at rabbix.jp>. [ruby-dev:29284] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6668308e69
commit
91b1bb609e
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Aug 18 01:05:57 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/cgi.rb (CGI::out): specify -m0 to disable MIME decode. a
|
||||||
|
patch from Fujioka <fuj at rabbix.jp>. [ruby-dev:29284]
|
||||||
|
|
||||||
Thu Aug 17 19:15:16 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu Aug 17 19:15:16 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* file.c (rb_stat_[rRwWxX]): check for super user.
|
* file.c (rb_stat_[rRwWxX]): check for super user.
|
||||||
|
|
|
@ -708,16 +708,16 @@ class CGI
|
||||||
require "nkf"
|
require "nkf"
|
||||||
case options["charset"]
|
case options["charset"]
|
||||||
when /iso-2022-jp/ni
|
when /iso-2022-jp/ni
|
||||||
content = NKF::nkf('-j', content)
|
content = NKF::nkf('-j -m0', content)
|
||||||
options["language"] = "ja" unless options.has_key?("language")
|
options["language"] = "ja" unless options.has_key?("language")
|
||||||
when /euc-jp/ni
|
when /euc-jp/ni
|
||||||
content = NKF::nkf('-e', content)
|
content = NKF::nkf('-e -m0', content)
|
||||||
options["language"] = "ja" unless options.has_key?("language")
|
options["language"] = "ja" unless options.has_key?("language")
|
||||||
when /shift_jis/ni
|
when /shift_jis/ni
|
||||||
content = NKF::nkf('-s', content)
|
content = NKF::nkf('-s -m0', content)
|
||||||
options["language"] = "ja" unless options.has_key?("language")
|
options["language"] = "ja" unless options.has_key?("language")
|
||||||
when /utf-8/ni
|
when /utf-8/ni
|
||||||
content = NKF::nkf('-w', content)
|
content = NKF::nkf('-w -m0', content)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue