repo: uritools
action: commit
revision: 
path_from: 
revision_from: d1d712299808f819634aa9938741de9d5cb38986:
path_to: 
revision_to: 
git.thebackupbox.net
uritools
git clone git://git.thebackupbox.net/uritools
commit d1d712299808f819634aa9938741de9d5cb38986
Author: epoch 
Date:   Tue Jan 21 16:24:29 2020 +0000

    small change that fixed uriescape I think. spaces were decoding into %00

diff --git a/uri.h b/uri.h
index dc049bceb0a2bdf93cfdef868c20682f97e5c3a8..
index ..ab6fab8fe258fb72190b6a53d1e07e935440d1d0 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++;

-----END OF PAGE-----