1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: =?UTF-8?q?Adeodato=20Sim=C3=B3?= <adeodato@debian.org>
Date: Sat, 2 Jun 2012 02:03:08 +0200
Subject: Do not quote params twice in a set boundary
This patch was obtained from these bugs in the upstream BTS:
* http://rubyforge.org/tracker/index.php?func=detail&aid=2170&group_id=446&atid=1754
* http://rubyforge.org/tracker/index.php?func=detail&aid=2661&group_id=446&atid=1756
---
lib/rmail/header.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/rmail/header.rb b/lib/rmail/header.rb
index 9102f28..2152f48 100644
--- a/lib/rmail/header.rb
+++ b/lib/rmail/header.rb
@@ -630,7 +630,7 @@ module RMail
# Set the boundary parameter of this message's Content-Type:
# field.
def set_boundary(boundary)
- params = params_quoted('content-type')
+ params = params('content-type')
params ||= {}
params['boundary'] = boundary
content_type = content_type()
--
|