make a note of obscure condition

This commit is contained in:
Matt 2015-02-03 19:45:18 -08:00
parent 3e1cc9a450
commit e426877eea

@ -1623,7 +1623,11 @@ int32_t urlDecodeNoZeroes ( char *dest , char *s , int32_t slen ) {
unsigned char b = htob ( s[i+2] ) ;
// NO ZEROES! fixes &content= having decoded \0's in it
// and setting our parms
if ( a + b == 0 ) return j;
if ( a + b == 0 ) {
log("fctypes: urlDecodeNoZeros encountered url "
"encoded zero. truncating http request.");
return j;
}
dest[j-1] = (char) (a + b);
i += 2;
}