From: pcanterino <> Date: Sun, 13 Feb 2005 15:22:21 +0000 (+0000) Subject: Aha! X-Git-Tag: version_2_3_1~4 X-Git-Url: https://git.p6c8.net/devedit.git/commitdiff_plain/c1339294a28926ba7593adbd3d48ef9f1bcf6dfa?ds=sidebyside Aha! --- diff --git a/devedit.pl b/devedit.pl index 2f9c918..237cf34 100644 --- a/devedit.pl +++ b/devedit.pl @@ -69,14 +69,7 @@ if($newfile ne '' && $newfile !~ /^\s+$/) # ... check if the directory exists ... - unless(-d clean_path($config->{'fileroot'}.'/'.$dir)) - { - abort($config->{'errors'}->{'dir_not_exist'},'/'); - } - - # (don't know, why this test has to be done separately) - - if(-l clean_path($config->{'fileroot'}.'/'.$dir)) + unless(-d clean_path($config->{'fileroot'}.'/'.$dir) && not -l clean_path($config->{'fileroot'}.'/'.$dir)) { abort($config->{'errors'}->{'dir_not_exist'},'/'); }