isudatateam / datateam

Audit required: Include statements might be vulnerable to injection attacks PHP-A1001
Security
Critical
3 months ago3 months old
Include statement might be vulnerable to injection attack
15    }
16    public function render($template_file) {
17        if (file_exists($this->template_dir.$template_file)) {
18            include $this->template_dir.$template_file;19        } else {
20            throw new Exception('no template file ' . $template_file . ' present in directory ' . $this->template_dir);
21        }