shithub: riscv

Download patch

ref: ae3afb12a05aca507b313c2ff61c27f015688e6e
parent: c3f2448a56a73378238e1d5b29f00a3d04f9afdc
parent: 70586401797baa5c60fb83840c91d218e7c40be9
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Apr 3 05:46:18 EDT 2014

merge

--- a/sys/src/cmd/webfs/url.c
+++ b/sys/src/cmd/webfs/url.c
@@ -31,7 +31,7 @@
 	for(r=w=s; x = *r; r++){
 		if(x == '%' && isxdigit(r[1]) && isxdigit(r[2])){
 			x = (dhex(r[1])<<4)|dhex(r[2]);
-			if(x == 0 || (x > 0x1F && x < 0x7F && strchr(spec, x))){
+			if(x == 0 || x == '%' || (x > 0x1F && x < 0x7F && strchr(spec, x))){
 				*w++ = '%';
 				*w++ = toupper(r[1]);
 				*w++ = toupper(r[2]);