Bug#488557: NetRW and cgi-parameters

Charles Campbell Charles.E.Campbell at nasa.gov
Tue Jul 1 16:55:16 UTC 2008


James Vega wrote:
> Chip,
>
> Current netrw doesn't properly download a file when there are cgi
> parameters as part of the URL.  Given the following command, Vim starts
> with an empty buffer
>
> vim 'http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=10;filename=nmu.diff;att=1;bug=484881'
>
> This also occurs if "&" is used instead of ";" for the parameter
> separators.
>
>   
James,

The command that netrw executes is:  (all one line)

   curl -o '/tmp/v948387/2.diff\;att=1\;bug=484881' 
'http://bugs.debian.org/cgi-bin/bugreport.cgi\?msg=10\;filename=nmu.diff\;att=1\;bug=484881'

The backslashes and quotes are put in there by the shellescape() 
function.  I note that the command

   curl -o prblm 'http://...'    (ie. with no backslashes)

works.  I think this may be a problem for Bram to consider.

Regards,
Chip Campbell






More information about the pkg-vim-maintainers mailing list