- If the user just entered spaces as filename (detection works for other
commands using the "newfile" CGI parameter too), we use the original filename
- Saving even works, if the file has to be created first
# Dev-Editor's main program
#
# Author: Patrick Canterino <patshaping@gmx.net>
-# Last modified: 2004-07-04
+# Last modified: 2004-10-04
#
use strict;
my $new_physical = '';
my $new_virtual = '';
-if($newfile ne '')
+if($newfile ne '' && $newfile !~ /^\s+$/)
{
$curdir = upper_path($file) if($curdir eq '');
my $path = clean_path($curdir.$newfile);