unescape *all* colons, instead of just the first one in encoded user IDs
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 12 Aug 2008 20:15:37 +0000 (16:15 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 12 Aug 2008 20:15:37 +0000 (16:15 -0400)
src/common

index b4e786bf0fb343b1dada37a722619c4e9e8e3a3b..ff1a220b84b20bcdea404d473cf48decfc53a056 100644 (file)
@@ -68,7 +68,7 @@ check_capability() {
 # character
 # FIXME: undo all escape character translation in with-colons gpg output
 unescape() {
-    echo "$1" | sed 's/\\x3a/:/'
+    echo "$1" | sed 's/\\x3a/:/g'
 }
 
 # remove all lines with specified string from specified file