You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.
When executing extension scripts on Windows NZBGet finds an associated interpreter (python.exe in a case of python scripts) in registry. The registry entry looks like this:
NZBGet replaces %1 with the path to extension script. Here %* is supposed to expand to parameters passed to the script. NZBGet passes everything via environment variables and doesn't use command line parameters. However there is a bug that the asterix isn't removed and passed to the script as parameter.
That's not a a big issue because NZBGet scripts don't expect any parameters and usually do not check passed parameters. However for scripts which can be run not only in NZBGet context but also executed directly via command line that extra asterix can be problematic. See caronc/nzb-subliminal#27.
In this issue: remove asterix at the end of command line.
The text was updated successfully, but these errors were encountered:
hugbug
changed the title
Asterix passed a parameter to python extension scripts on Windows
Asterix passed as parameter to python extension scripts on Windows
Jun 7, 2017
When executing extension scripts on Windows NZBGet finds an associated interpreter (python.exe in a case of python scripts) in registry. The registry entry looks like this:
NZBGet replaces
%1
with the path to extension script. Here%*
is supposed to expand to parameters passed to the script. NZBGet passes everything via environment variables and doesn't use command line parameters. However there is a bug that the asterix isn't removed and passed to the script as parameter.That's not a a big issue because NZBGet scripts don't expect any parameters and usually do not check passed parameters. However for scripts which can be run not only in NZBGet context but also executed directly via command line that extra asterix can be problematic. See caronc/nzb-subliminal#27.
In this issue: remove asterix at the end of command line.
The text was updated successfully, but these errors were encountered: