noedit = You have not enough permissions to edit this file.
file_in_use = The file '{FILE}' is currently edited by someone else.
edit_failed = Saving of file '{FILE}' failed. The file could be damaged, please check its integrity.
+text_to_binary = You aren't allowed to write text data into a binary file.
delete_failed = Could not delete file '{FILE}'.
dir_read_fail = Reading of directory '{DIR}' failed.
mkfile_failed = Could not create file '{FILE}'.
return error($config->{'errors'}->{'in_use'},upper_path($virtual),{FILE => $virtual}) if($uselist->in_use($virtual));
}
- return error($config->{'errors'}->{'editdir'},upper_path($virtual)) if(-d $physical);
- return error($config->{'errors'}->{'noedit'}, upper_path($virtual)) if(-e $physical && !(-r $physical && -w $physical));
+ return error($config->{'errors'}->{'text_to_binary'},upper_path($virtual)) unless(-T $physical);
+ return error($config->{'errors'}->{'editdir'},upper_path($virtual)) if(-d $physical);
+ return error($config->{'errors'}->{'noedit'}, upper_path($virtual)) if(-e $physical && !(-r $physical && -w $physical));
if(file_save($physical,\$content))
{