Merged pathname checks from stable

This commit is contained in:
moodler
2004-09-29 06:52:24 +00:00
parent 2d1facbc84
commit d030268d68
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -33,8 +33,10 @@
if ($form = data_submitted()) { /// Filename
$form->format = clean_filename($form->format);
if (! is_readable("format/$form->format/format.php")) {
error("Format not known ($form->format)");
error('Format not known ('.clean_text($form->format).')');
}
require("format.php"); // Parent class
+3 -1
View File
@@ -47,8 +47,10 @@
if (is_array($newfile)) { // either for file already on server or just uploaded file.
$form->format = clean_filename($form->format);
if (! is_readable("format/$form->format/format.php")) {
error("Format not known ($form->format)");
error('Format not known ('.clean_text($form->format).')');
}
require("format.php"); // Parent class