summaryrefslogtreecommitdiff
path: root/includes/database
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-23 18:54:32 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-23 18:54:32 +0000
commit4d590cff65c6dcc98a7523bf1eb8610a1d8757ef (patch)
tree555958cd1dbfc693071f8ac0f56512800cf4c56e /includes/database
parent9b4274e8c786ce8643b69447ba0b4d74ce84223f (diff)
downloadbrdo-4d590cff65c6dcc98a7523bf1eb8610a1d8757ef.tar.gz
brdo-4d590cff65c6dcc98a7523bf1eb8610a1d8757ef.tar.bz2
- Patch #715132 by moshe weitzman: over aggressive escaping of table names.
Diffstat (limited to 'includes/database')
-rw-r--r--includes/database/database.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/database/database.inc b/includes/database/database.inc
index 90c007238..a4c996a0e 100644
--- a/includes/database/database.inc
+++ b/includes/database/database.inc
@@ -831,7 +831,7 @@ abstract class DatabaseConnection extends PDO {
* The sanitized table name string.
*/
public function escapeTable($table) {
- return preg_replace('/[^A-Za-z0-9_]+/', '', $table);
+ return preg_replace('/[^A-Za-z0-9_.]+/', '', $table);
}
/**