sftpgo-mirror/utils
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
..
umask_unix.go Add connectionID to as many entries as possible 2019-09-05 22:58:14 +02:00
umask_windows.go Add connectionID to as many entries as possible 2019-09-05 22:58:14 +02:00
utils.go windows: try to escape trailing double quote in user input 2020-03-04 09:27:14 +01:00
version.go back to development 2020-01-12 19:16:18 +01:00