Because of the way the command is generated and called, the web interface fails when there's whitespace. Currently code does something like:
my $command = "python script.py -in $filename"
my $output = `$command`
The easiest way out is to simply quote $filename but that will cause problems if the filename has quotes. A good way out is to use system() but then it doesn't capture stdout. A better way out would be to use IPC::Open2 but that complicates things. An easier way out would be too use a hardcoded filename when uploading the filename but then the output will make less sense to the user.
Because of the way the command is generated and called, the web interface fails when there's whitespace. Currently code does something like:
The easiest way out is to simply quote $filename but that will cause problems if the filename has quotes. A good way out is to use
system()but then it doesn't capture stdout. A better way out would be to useIPC::Open2but that complicates things. An easier way out would be too use a hardcoded filename when uploading the filename but then the output will make less sense to the user.