throw new Pluf_Form_Invalid(__("Must upload a file or specify an external file"));␊ |
}␊ |
␊ |
foreach(explode(".", $this->cleaned_data["ext_file_name"]) as $section) {␊ |
if (!ctype_alnum(($section))) {␊ |
throw new Pluf_Form_Invalid(__("External file name must not contain characters other than a-zA-Z and ."));␊ |
}␊ |
}␊ |
␉␉if ($this->cleaned_data["ext_file_name"] != "") {␊ |
␉␉␉foreach(explode(".", $this->cleaned_data["ext_file_name"]) as $section) {␊ |
␉␉␉␉if (!ctype_alnum(($section))) {␊ |
␉␉␉␉␉throw new Pluf_Form_Invalid(__("External file name must not contain characters other than a-zA-Z and ."));␊ |
␉␉␉␉}␊ |
␉␉␉}␊ |
␉␉}␊ |
return $this->cleaned_data;␊ |
}␊ |
␊ |