X-Git-Url: https://git.p6c8.net/devedit.git/blobdiff_plain/6cb088cea794fc67941b4e174fe9ed80c8a45875..9aaab5ffcf60b528c1fce506a1011029f5ba392a:/modules/Command.pm diff --git a/modules/Command.pm b/modules/Command.pm index 28c6777..2905545 100644 --- a/modules/Command.pm +++ b/modules/Command.pm @@ -6,7 +6,7 @@ package Command; # Execute Dev-Editor's commands # # Author: Patrick Canterino -# Last modified: 2005-08-01 +# Last modified: 2009-03-30 # use strict; @@ -521,6 +521,14 @@ sub exec_upload($$) if(my $uploaded_file = $cgi->param('uploaded_file')) { + if($cgi->param('remote_file')) + { + $uploaded_file = $cgi->param('remote_file'); + + $uploaded_file =~ s!/!!g; + $uploaded_file =~ s!\\!!g; + } + # Process file upload my $filename = file_name($uploaded_file);