summaryrefslogtreecommitdiff
path: root/lib/util/util.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-10-30 08:58:34 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-11-02 16:36:52 +1100
commit7a290130bdeb411625f16451af3f2cfd25eeaf00 (patch)
tree82b74fbc027b4e6b1bee746c7f1e6605f1e0b9e0 /lib/util/util.c
parent87195f55de771546ea74c0ab06d882f900588099 (diff)
downloadsamba-7a290130bdeb411625f16451af3f2cfd25eeaf00.tar.gz
samba-7a290130bdeb411625f16451af3f2cfd25eeaf00.tar.bz2
samba-7a290130bdeb411625f16451af3f2cfd25eeaf00.zip
lib/util Use rfc1738.c from Squid for all our URL encode/decode needs.
Andrew Bartlett
Diffstat (limited to 'lib/util/util.c')
-rw-r--r--lib/util/util.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/lib/util/util.c b/lib/util/util.c
index fd0e6b8d79..67b166b421 100644
--- a/lib/util/util.c
+++ b/lib/util/util.c
@@ -667,46 +667,6 @@ _PUBLIC_ char *hex_encode_talloc(TALLOC_CTX *mem_ctx, const unsigned char *buff_
}
/**
- Unescape a URL encoded string, in place.
-**/
-
-_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];
-
- if (c1 >= '0' && c1 <= '9')
- c1 = c1 - '0';
- else if (c1 >= 'A' && c1 <= 'F')
- c1 = 10 + c1 - 'A';
- else if (c1 >= 'a' && c1 <= 'f')
- c1 = 10 + c1 - 'a';
- else {p++; continue;}
-
- if (c2 >= '0' && c2 <= '9')
- c2 = c2 - '0';
- else if (c2 >= 'A' && c2 <= 'F')
- c2 = 10 + c2 - 'A';
- else if (c2 >= 'a' && c2 <= 'f')
- c2 = 10 + c2 - 'a';
- else {p++; continue;}
-
- *p = (c1<<4) | c2;
-
- memmove(p+1, p+3, strlen(p+3)+1);
- p++;
- }
-}
-
-/**
varient of strcmp() that handles NULL ptrs
**/
_PUBLIC_ int strcmp_safe(const char *s1, const char *s2)