You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to add a $tables array with allowed tables and a possible $table_prefix in the code.
Suggested approach:
add $tables array and $table_prefix variable after the $dsn variable
add static function Allowed in ArrestDB class which checks if a certain table is available in the $tables array and otherwise exits with a 403 (just like for the $clients array)
add '$table = $table_prefix.$table; ArrestDB::Allowed($table);' to each ArrestDB::Serve function implementation
Can I add it and is this the right approach?
The text was updated successfully, but these errors were encountered:
lievenjanssen
changed the title
Add $tables array and $table_prefix
Add $methods and $tables array and $table_prefix
Jun 4, 2014
I would like to add a $tables array with allowed tables and a possible $table_prefix in the code.
Suggested approach:
Can I add it and is this the right approach?
The text was updated successfully, but these errors were encountered: