From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1DEFF138AD7 for ; Wed, 25 Feb 2015 11:00:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 71FBFE08EC; Wed, 25 Feb 2015 11:00:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1AB11E08EC for ; Wed, 25 Feb 2015 11:00:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DEF783408C0 for ; Wed, 25 Feb 2015 11:00:21 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E115D1284A for ; Wed, 25 Feb 2015 10:44:34 +0000 (UTC) From: "Alex Legler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alex Legler" Message-ID: <1424860483.ca2e544c70ac653b65038a60cd0db49983bed0cc.a3li@gentoo> Subject: [gentoo-commits] proj/ag-web:master commit in: lib/ X-VCS-Repository: proj/ag-web X-VCS-Files: lib/helpers.rb X-VCS-Directories: lib/ X-VCS-Committer: a3li X-VCS-Committer-Name: Alex Legler X-VCS-Revision: ca2e544c70ac653b65038a60cd0db49983bed0cc X-VCS-Branch: master Date: Wed, 25 Feb 2015 10:44:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 28b65f68-bd23-4e45-a9ff-004c04e67b0a X-Archives-Hash: d31818621370a3b4974720d1924eccd5 commit: ca2e544c70ac653b65038a60cd0db49983bed0cc Author: Alex Legler a3li li> AuthorDate: Wed Feb 25 10:34:43 2015 +0000 Commit: Alex Legler gentoo org> CommitDate: Wed Feb 25 10:34:43 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=ca2e544c Better email escape --- lib/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helpers.rb b/lib/helpers.rb index 6844e6d..987caeb 100644 --- a/lib/helpers.rb +++ b/lib/helpers.rb @@ -45,7 +45,7 @@ helpers do # This method strips domains from header fields. def strip_email_headers(ary) [ary].flatten.map do |email| - email.gsub(/@(\S*?)(>|$)/) do |s| + email.gsub(/@(\S*?)('|"|>|$)/) do |s| if $1 == 'gentoo.org' "@g.o#{$2}" elsif $1 == 'lists.gentoo.org'