File: 0001-Do-not-quote-params-twice-in-a-set-boundary.patch

package info (click to toggle)
ruby-rubymail 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,056 kB
  • sloc: ruby: 6,061; makefile: 7
file content (26 lines) | stat: -rw-r--r-- 940 bytes parent folder | download | duplicates (2)
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()
--