ref: 7916175ab6988705b3d881da194664d16660d653
parent: 8582ed1daf0bc181a6bf10c948d88e5c0c0e3f61
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Aug 3 11:26:33 EDT 2015
libhttpd: use strtol to parse decimal character references in httpunesc()
--- a/sys/src/libhttpd/httpunesc.c
+++ b/sys/src/libhttpd/httpunesc.c
@@ -18,7 +18,7 @@
for(t = v; c = *s;){ if(c == '&'){ if(s[1] == '#' && s[2] && s[3] && s[4] && s[5] == ';'){- c = atoi(s+2);
+ c = strtol(s+2, 0, 10);
if(c < Runeself){*t++ = c;
s += 6;
--
⑨