sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 23688c40b9657fc29b632fa95424f59ae56a737a
parent 5697a8ba17241369230de8c7437c96a583e6272e
Author: Michael Stapelberg <michael@stapelberg.de>
Date:   Mon, 24 Jan 2011 19:18:57 +0100

Bugfix: Un-escape slashes when initializing a new Person

In Person#full_address, we add slashes by using @name.inspect, so we need to
take care of them here.

Signed-off-by: Hamish Downer 

Diffstat:
M lib/sup/person.rb | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/sup/person.rb b/lib/sup/person.rb
@@ -9,6 +9,7 @@ class Person
     @name = if name
       name = name.strip.gsub(/\s+/, " ")
       name =~ /^(['"]\s*)(.*?)(\s*["'])$/ ? $2 : name
+      name.gsub('\\\\', '\\')
     end
 
     @email = email.strip.gsub(/\s+/, " ").downcase