summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_dbi.class')
-rw-r--r--it_dbi.class3
1 files changed, 3 insertions, 0 deletions
diff --git a/it_dbi.class b/it_dbi.class
index d4722e9..12a4ef1 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -85,6 +85,9 @@ function __construct($p = array(), $query = null, ...$args)
if ($p['table']) # Standard use: create a table object
{
+ if (it::match('[^a-z0-9_.]', $p['table']))
+ $this->_fatal("_construct: invalid table name '{$p['table']}''");
+
if (!isset($GLOBALS[static::$_global_key]))
new static::$_global_key;