psalm fix

pull/316/head
David Goodwin 5 years ago
parent e20b2cacdb
commit b8d7c0513f

@ -27,6 +27,9 @@ require_once('common.php');
$username = authentication_get_username(); # enforce login
$table = safepost('table', safeget('table'));
if(!is_string($table)) {
die("Invalid table name given!");
}
$handlerclass = ucfirst($table) . 'Handler';
if (!preg_match('/^[a-z]+$/', $table) || !file_exists(dirname(__FILE__) . "/../model/$handlerclass.php")) { # validate $table

Loading…
Cancel
Save