[conkeror] Re: Protocol handling bug?

  • From: Philip Hudson <phil.hudson@xxxxxxxxx>
  • To: conkeror@xxxxxxxxxxxxx
  • Date: Fri, 1 Sep 2017 22:36:38 +0100

Bump.

Is there anywhere in "our" code where I could add opening and closing
single quotes around the URI before it gets passed to the shell?

On 28 August 2017 at 14:56, Philip Hudson <phil.hudson@xxxxxxxxx> wrote:

According to log output, it seems that the URI passed to an executable
file specified as the protocol handler for that URI's scheme is not
shell-quoted. Thus, if the URI contains a query string, delimited by
'&' characters as such strings inevitably are, the shell decides that
it is being told to background a command, and the rest of the URI is a
new command (which itself may be demanding to be backgrounded, etc
etc).

Mozilla code, I think, not "our" code.

This seems so incredible that I wonder if there's something I've
missed. Surely this can't have gone undetected and uncorrected this
long?

The example on the wiki of a protocol handler for 'magnet' scheme URIs
can never have worked if my reasoning is correct, since 'magnet' URIs
pretty much always contain long multi-part query strings. Can anyone
contradict that? Anyone got that example working? I'm using a shell
script rather than the Transmission binary specified in the wiki
example. Surely that should not make a difference?

--
Phil Hudson                  http://hudson-it.ddns.net
Pretty Good Privacy (PGP) ID: 0x887DCA63



-- 
Phil Hudson                  http://hudson-it.ddns.net
Pretty Good Privacy (PGP) ID: 0x887DCA63

Other related posts: