From d1d712299808f819634aa9938741de9d5cb38986 Mon Sep 17 00:00:00 2001 From: epoch Date: Tue, 21 Jan 2020 16:24:29 +0000 Subject: small change that fixed uriescape I think. spaces were decoding into %00 --- uri.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uri.h b/uri.h index dc049bc..ab6fab8 100644 --- a/uri.h +++ b/uri.h @@ -38,7 +38,7 @@ int uriescapelength(char *in,int len) { } // make sure your out char * has enough space! use uriescapelength for it. -void uriescape(char *in,char *out,int len) { +void uriescape(unsigned char *in,char *out,int len) { int i; int j; for(i=0,j=0;i> 4 & 0x15)]; + out[j]="0123456789ABCDEF"[((in[i] >> 4) % 16)]; j++; out[j]="0123456789ABCDEF"[(in[i] % 16)]; j++; -- cgit v1.2.3