From: <li...@yo...> - 2007-07-08 14:38:44
|
# HG changeset patch # User Darren Salt <li...@yo...> # Date 1183904363 -3600 # Node ID 9dd56a2bd3652d42b8f9ab81eeaf7d44fb9db1e2 # Parent 82bc4a5c2b4cf164aa23bcbe9222e24cfff56b4c Have the file input plugin use _x_mrl_unescape() instead of its own code. diff -r 9dd56a2bd3652d42b8f9ab81eeaf7d44fb9db1e2 -r 82bc4a5c2b4cf164aa23bcbe9222e24cfff56b4c src/input/input_file.c --- a/src/input/input_file.c Sun Jul 08 15:19:23 2007 +0100 +++ b/src/input/input_file.c Sun Jul 08 15:13:37 2007 +0100 @@ -327,31 +327,8 @@ static void file_plugin_dispose (input_p } static char *decode_uri (char *uri) { - - int len = strlen (uri); - int i; - uri = strdup(uri); - - for (i=0; i<len; i++) { - - if ( (uri[i]=='%') && (i<(len-2)) ) { - - int c; - - if ( sscanf (&uri[i+1], "%02x", &c) == 1) { - - uri[i]= (char) c; - - memmove (uri+i+1, uri+i+3, len-i-3); - - len-=2; - } - } - } - - uri[len] = 0; - + _x_mrl_unescape (uri); return uri; } |