Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

koka

Maybe it's easier this way:
ftype WinSCP.Url="C:\Program Files (x86)\WinSCP\WinSCP.exe" %1

Restore how it was before:
ftype WinSCP.Url="C:\Program Files (x86)\WinSCP\WinSCP.exe" /Unsafe "%1"
martin

Ok, actually, yes that's expected.
Executing random local commands over URL is not allowed. That's the very point of /Unsafe.
koka

Reg files winscp-SCP.reg winscp-SCP-withoutUnsafe.reg
koka

Direct run WinSCP.exe with url is Ok (url.log)
Run WinSCP.exe over url handler WinSCP.exe /Unsafe "%1" is not Ok (startWithUnsafe.log)
Run WinSCP.exe over dirty fixed url handler WinSCP.exe %1 is Ok (startWithoutUnsafe.log)
martin

Re: -rawsettings ProxyTelnetCommand do not work in URL

What "bug"? How are you running the start commands?

Please post session log files both from (when executed directly in cmd console):
winscp.exe /log=rawsettings.log ssh://root@10.161.115.160/ /rawsettings ProxyMethod=6 ProxyHost=12s

and
winscp.exe /log=url.log ssh://root;x-ProxyMethod=5;x-ProxyTelnetCommand=ssh+-W10.161.115.160%3A22+12s@10.161.115.160/
koka

-rawsettings ProxyTelnetCommand do not work in URL

ok – winscp.exe ssh://root@10.161.115.160/ -rawsettings ProxyMethod=6 ProxyHost=12s
ok – start ssh://root;x-ProxyMethod=6;x-ProxyHost=12s@10.161.115.160/
ok – winscp.exe ssh://root@10.161.115.160/ -rawsettings ProxyMethod=5 ProxyTelnetCommand="ssh -W%host:%port 12s"
bug – start ssh://root;x-ProxyMethod=5;x-ProxyTelnetCommand=ssh+-W%25host%3A%25port+12s@10.161.115.160/
bug – start ssh://root;x-ProxyMethod=5;x-ProxyTelnetCommand=ssh+-W10.161.115.160%3A22+12s@10.161.115.160/
bug – start ssh://root;x-ProxyMethod=5;x-ProxyTelnetCommand=ssh%20-W10.161.115.160%3A22%2012s@10.161.115.160/