libhttpd: use strtol to parse decimal character references in httpunesc()
This commit is contained in:
parent
0d93e2fe70
commit
9289c4b796
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ httpunesc(HConnect *cc, char *s)
|
||||||
for(t = v; c = *s;){
|
for(t = v; c = *s;){
|
||||||
if(c == '&'){
|
if(c == '&'){
|
||||||
if(s[1] == '#' && s[2] && s[3] && s[4] && s[5] == ';'){
|
if(s[1] == '#' && s[2] && s[3] && s[4] && s[5] == ';'){
|
||||||
c = atoi(s+2);
|
c = strtol(s+2, 0, 10);
|
||||||
if(c < Runeself){
|
if(c < Runeself){
|
||||||
*t++ = c;
|
*t++ = c;
|
||||||
s += 6;
|
s += 6;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue