[SS-2018-016] Group table name is escaped to prevent possibility of SQL injection

This commit is contained in:
Robbie Averill 2018-07-16 11:22:58 +12:00
parent 7e1c2eb0aa
commit 4b6804eaab

View File

@ -47,7 +47,7 @@ class GroupSubsites extends DataExtension implements PermissionProvider
}
// Migration for Group.SubsiteID data from when Groups only had a single subsite
$schema = DataObject::getSchema();
$groupTable = $schema->tableName(Group::class);
$groupTable = Convert::raw2sql($schema->tableName(Group::class));
$groupFields = DB::field_list($groupTable);
// Detection of SubsiteID field is the trigger for old-style-subsiteID migration