mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
[SS-2018-016] Group table name is escaped to prevent possibility of SQL injection
This commit is contained in:
parent
7e1c2eb0aa
commit
4b6804eaab
@ -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