#2784: [Execute] Escape call parameters for Windows
--------------------+--------------------
Reporter: Cas | Owner:
Type: bug | Status: new
Priority: minor | Milestone: 1.3.13
Component: Plugin | Version: 1.3.12
Keywords: |
--------------------+--------------------
From: http://forum.deluge-torrent.org/viewtopic.php?f=9&t=48203&p=221405
To expand on my prior post, I'm talking about escaping required by the
Windows OS command line. Unless an ampersand is escaped, Windows
interprets it as separating 2 commands, so it runs everything before the
ampersand as one command and everything after it as another command (ref:
http://www.robvanderwoude.com/condexec.php). So when the execute plugin
tries to run a command and the filename has an ampersand in it, Windows
tries to run it as 2 separate and partial commands.
I have tested my script by calling it manually, and if it is called with
the ampersand properly escaped, my script works fine. So the problem isn't
my script as you suggested. And it's not an encoding issue. It's a
Windows-specific command line escaping issue with the plugin.
http://stackoverflow.com/questions/14020944/how-do-i-escape-ampersands-in-
batch-file-function-parameter
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/2784>
Deluge <http://deluge-torrent.org/>
Deluge Project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/d/optout.