mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Merge pull request #1 from silverstripe-security/pulls/2.1/ss-2018-016
[SS-2018-016] Group table name is escaped to prevent possibility of SQL injection
This commit is contained in:
commit
bf2c81dce6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user