Fix handling of URIs in io_open()

Fix io_open()'s handling of options in URI, fixing the "filenames with a
question mark are not scanned" bug.

Patch by Chris Pitchford, cpitchford on the Firefly forum.
This commit is contained in:
Chris Pitchford 2009-04-02 13:07:36 +02:00 committed by Julien BLACHE
parent 7c1752d871
commit 54d441f57c

View File

@ -577,16 +577,17 @@ int io_open(IO_PRIVHANDLE *phandle, char *fmt, ...) {
proto_part = uri_copy;
}
if(path_part)
io_urldecode(path_part);
/* find the start of the options */
options_part = strchr(path_part,'?');
if(options_part) {
*options_part = '\0';
options_part++;
io_urldecode(options_part);
}
if(path_part)
io_urldecode(path_part);
/* see if we can generate a list of options */
while(options_part) {
key = options_part;