22 lines
885 B
Diff
22 lines
885 B
Diff
commit 11183a22ef3998b9e822bb9322e49b8d6838aa81
|
|
Author: wyhaines <wyhaines@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
|
|
Date: Tue Aug 17 18:36:29 2010 +0000
|
|
|
|
lib/webrick/httpresponse.rb: CVE-2010-0541; Fix a potential XSS vulnerabilty. See the CVE report for more information.
|
|
|
|
|
|
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@29026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
|
|
|
diff --git a/lib/webrick/httpresponse.rb b/lib/webrick/httpresponse.rb
|
|
index 62156b1..48fe4b0 100644
|
|
--- a/lib/webrick/httpresponse.rb
|
|
+++ b/lib/webrick/httpresponse.rb
|
|
@@ -209,7 +209,7 @@ module WEBrick
|
|
@keep_alive = false
|
|
self.status = HTTPStatus::RC_INTERNAL_SERVER_ERROR
|
|
end
|
|
- @header['content-type'] = "text/html"
|
|
+ @header['content-type'] = "text/html; charset=ISO-8859-1"
|
|
|
|
if respond_to?(:create_error_page)
|
|
create_error_page()
|