Re: [PATCH] - further improved decoding of URL special characters
Morten Nilsen <[email protected]> Sat, 05 Nov 2005 20:04:03 +0100
| Newsgroups | gmane.comp.multimedia.xmms.devel |
|---|---|
| Message-ID | <[email protected]> |
Morten Nilsen wrote:
> Morten Nilsen wrote:
>
>>if(*r == '%') {
>
>
> another thing came to mind.. if the above if is changed to:
>
> if(*r == '%' && *r[q] && *r[2]) {
sorry about that..
if(r[0] == '%' && r[1] && r[1]) {
also changed *r to r[0] for consistency
> we won't attempt parsing past the end of string if something like
> "foo%\0" is passed in, and we save some processing if "foo%a\0" is passed in
Cheers,
--
Morten