sftpgo/cmd
Nicola Murino 31d285813e windows: try to escape trailing double quote in user input
we try to remove the trailing double quote for user input such as this one

sftpgo.exe serve -c "C:\ProgramData\SFTPGO\"

the value for the -c flag is parsed as:

C:\ProgramData\SFTPGO"

this is what the user specified, but the user want this value:

C:\ProgramData\SFTPGO

so we try to remove the trailing double quote.

Please note that we cannot do anything for something like this:

-c "C:\ProgramData\SFTPGO\" -l "sftpgo.log"

in this case the -l flag will be ignored and the value for the c flag is:

C:\ProgramData\SFTPGO" -l sftpgo.log

and so probably it is invalid. This is definitely a bad user input
2020-03-04 09:27:14 +01:00
..
initprovider.go windows: try to escape trailing double quote in user input 2020-03-04 09:27:14 +01:00
install_windows.go windows: try to escape trailing double quote in user input 2020-03-04 09:27:14 +01:00
portable.go windows: try to escape trailing double quote in user input 2020-03-04 09:27:14 +01:00
reload_windows.go memory provider: load users from a dump file 2020-02-02 22:20:39 +01:00
root.go windows: try to escape trailing double quote in user input 2020-03-04 09:27:14 +01:00
serve.go windows: try to escape trailing double quote in user input 2020-03-04 09:27:14 +01:00
service_windows.go memory provider: load users from a dump file 2020-02-02 22:20:39 +01:00
start_windows.go windows: try to escape trailing double quote in user input 2020-03-04 09:27:14 +01:00
status_windows.go add Windows Service support 2019-09-16 08:52:58 +02:00
stop_windows.go add Windows Service support 2019-09-16 08:52:58 +02:00
uninstall_windows.go add Windows Service support 2019-09-16 08:52:58 +02:00