Skip to content

Commit 582704b

Browse files
authored
fix(files): Implement file upload renaming security fix from SA-CORE-2020-012 (drupal-graphql#1115)
1 parent 794ce3c commit 582704b

File tree

4 files changed

+298
-166
lines changed

4 files changed

+298
-166
lines changed

graphql.services.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,15 @@ services:
144144
# File upload.
145145
graphql.file_upload:
146146
class: Drupal\graphql\GraphQL\Utility\FileUpload
147-
arguments: ['@entity_type.manager', '@current_user', '@file.mime_type.guesser', '@file_system', '@logger.channel.graphql']
147+
arguments:
148+
- '@entity_type.manager'
149+
- '@current_user'
150+
- '@file.mime_type.guesser'
151+
- '@file_system'
152+
- '@logger.channel.graphql'
153+
- '@token'
154+
- '@lock'
155+
- '@config.factory'
148156

149157
plugin.manager.graphql.persisted_query:
150158
class: Drupal\graphql\Plugin\PersistedQueryPluginManager

0 commit comments

Comments
 (0)