Browse Source

make sure we do not double quote mysql table names somehow

issue-916
David Goodwin 5 years ago
parent
commit
6c3ff42036
  1. 2
      functions.inc.php

2
functions.inc.php

@ -2085,6 +2085,8 @@ function table_by_key($table_key) {
$table = $CONF['database_prefix'] . $table;
if (db_mysql()) {
// try and ensure we don't get ``table`` ?
$table = preg_replace('/`/', '', $table);
return "`" . $table . "`";
}

Loading…
Cancel
Save