Re: [libav-devel] [RFC] [PATCH 2/2] img2dec: Handle query parameters when checking extensions

2016-02-24 Thread Luca Barbato
On 24/02/16 09:22, Anton Khirnov wrote: > Quoting Vittorio Giovara (2016-02-24 01:44:19) >> A webserver omits the Content-Type or if mime-magic fails for unexpected >> reasons, probing an image HTTP URL with query parameters will fail in >> the extension match. >> >> So check the protocol used is

Re: [libav-devel] [RFC] [PATCH 2/2] img2dec: Handle query parameters when checking extensions

2016-02-24 Thread Anton Khirnov
Quoting Vittorio Giovara (2016-02-24 01:44:19) > A webserver omits the Content-Type or if mime-magic fails for unexpected > reasons, probing an image HTTP URL with query parameters will fail in > the extension match. > > So check the protocol used is http or https, and drop anything after > the

[libav-devel] [RFC] [PATCH 2/2] img2dec: Handle query parameters when checking extensions

2016-02-23 Thread Vittorio Giovara
A webserver omits the Content-Type or if mime-magic fails for unexpected reasons, probing an image HTTP URL with query parameters will fail in the extension match. So check the protocol used is http or https, and drop anything after the first query parameter when evaluating an image URL.