Page 1 of 1

User Scripts parameters missing double quotes

Posted: May 14th, 2011, 10:23 am
by barlow
For some jobs the result-dir, nzb-name and nice-name are missing the double quotes which causes issues with my scripts.
Job name causing trouble contain underscores and square brackets.
Jobs with space in their name do get double quotes. Are quotes only added when needed?

This happens with SABnzbd 0.60 on Windows 7 x64.

Re: User Scripts parameters missing double quotes

Posted: May 15th, 2011, 2:31 am
by shypike
Quotes are only added when needed.
That's when spaces, ampersands or semicolons are present.

Re: User Scripts parameters missing double quotes

Posted: May 15th, 2011, 4:30 am
by barlow
I see. Must be the script not liking some characters then.
But "%~1" seems to work well (to make sure there is only one set of double quotes).