Fix bug 6861 - rfc1738_unescape converts '+' characters to spaces. Stop rfc1738_unesc...
authorJeremy Allison <jra@samba.org>
Fri, 30 Oct 2009 21:16:03 +0000 (14:16 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 10 Nov 2009 11:25:04 +0000 (12:25 +0100)
util/util.c

index 0148bdb00d4d43a4246130b9e5993c6f67253d48..af682ac15fcf768d67b5752c4d8746d34b81b429 100644 (file)
@@ -702,11 +702,6 @@ _PUBLIC_ void rfc1738_unescape(char *buf)
 {
        char *p=buf;
 
-       while ((p=strchr(p,'+')))
-               *p = ' ';
-
-       p = buf;
-
        while (p && *p && (p=strchr(p,'%'))) {
                int c1 = p[1];
                int c2 = p[2];