[git] GnuPG - branch, STABLE-BRANCH-2-0, updated. gnupg-2.0.27-18-gbe13627

by Werner Koch cvs at cvs.gnupg.org
Mon May 11 19:41:38 CEST 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, STABLE-BRANCH-2-0 has been updated
       via  be136273454532d94a955fbbcfa1544b47cad954 (commit)
      from  3f9f33bbcb40146c6f09277a28d499188ed34ef2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit be136273454532d94a955fbbcfa1544b47cad954
Author: Werner Koch <wk at gnupg.org>
Date:   Mon May 11 19:38:07 2015 +0200

    gpg-connect-agent: Fix quoting of internal percent+ function.
    
    * tools/gpg-connect-agent.c (get_var_ext) <percent, percent+): Also
    escape '+'.
    --
    
    GnuPG-bug-id: 1841
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/tools/gpg-connect-agent.c b/tools/gpg-connect-agent.c
index 4acda01..142bd30 100644
--- a/tools/gpg-connect-agent.c
+++ b/tools/gpg-connect-agent.c
@@ -499,8 +499,8 @@ arithmetic_op (int operator, const char *operands)
      percent ARGS
      percent+ ARGS
            Escape the args using the percent style.  Tabs, formfeeds,
-           linefeeds and carriage returns are also escaped.
-           "percent+" also maps spaces to plus characters.
+           linefeeds, carriage return, and the plus sign are also
+           escaped.  "percent+" also maps spaces to plus characters.
 
      errcode ARG
            Assuming ARG is an integer, return the gpg-error code.
@@ -592,12 +592,12 @@ get_var_ext (const char *name)
   else if ( (s - name) == 7 && !strncmp (name, "percent", 7))
     {
       s++;
-      result = percent_escape (s, "\t\r\n\f\v");
+      result = percent_escape (s, "+\t\r\n\f\v");
     }
   else if ( (s - name) == 8 && !strncmp (name, "percent+", 8))
     {
       s++;
-      result = percent_escape (s, "\t\r\n\f\v");
+      result = percent_escape (s, "+\t\r\n\f\v");
       for (p=result; *p; p++)
         if (*p == ' ')
           *p = '+';

-----------------------------------------------------------------------

Summary of changes:
 tools/gpg-connect-agent.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list