From 7cd846d62e17f36be2f7d29e56188ddf6a6d72cb Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Mon, 25 Aug 2014 07:31:15 -0500 Subject: [PATCH 16/22] xdg-email: do not encode - character --- ChangeLog | 3 +++ scripts/xdg-email.in | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f29d9d6..2554692 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ === xdg-utils 1.1.x === +2014-08-25 Rex Dieter + * xdg-email: do not encode - character + 2014-04-26 Rex Dieter * xdg-open fails to open web browser urls with a query string (BR45857) diff --git a/scripts/xdg-email.in b/scripts/xdg-email.in index 4c3cb83..54de71f 100644 --- a/scripts/xdg-email.in +++ b/scripts/xdg-email.in @@ -226,7 +226,7 @@ result=$(echo "$str" | awk ' c = substr ($0, i, 1) if ( ord [c] > 127 ) { e = e "%" sprintf("%02X", ord [c]) - } else if ( c ~ /[@a-zA-Z0-9.-\\\/]/ ) { + } else if ( c ~ /[@a-zA-Z0-9.\-\\\/]/ ) { e = e c } else { e = e "%" sprintf("%02X", ord [c]) -- 2.1.0