[FFmpeg-devel] [PATCH] Handling special characters in a URL.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Mar 5 07:27:22 CET 2013



On 5 Mar 2013, at 05:00, Senthilnathan Maadasamy <senthilnathan.maadasamy at gmail.com> wrote:

> On Mon, Mar 4, 2013 at 7:49 PM, Michael Niedermayer <michaelni at gmx.at>wrote:
> 
>> On Mon, Mar 04, 2013 at 06:30:03AM +0530, Senthilnathan Maadasamy wrote:>
>> +    while (len < component_size && (c = src[len])) {
>> 
>>> +        if (isalnum(c) || strchr("-._~%", c) ||
>> 
>> isalnum is locale specific
> 
> Fixed it in the attached patch.
> <special-characters-in-URL.patch>

I don't see how this matches together with the RFC you quote.
You skip encoding of ? and = for example, but you %-encode # and & which are in the same class of characters respectively.


More information about the ffmpeg-devel mailing list