Skip to content

Commit 18ad34b

Browse files
Escape string quotes in query
Co-authored-by: Richard Fath <[email protected]>
1 parent 9e1da0e commit 18ad34b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

administrator/components/com_modules/src/Model/ModuleModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,7 @@ public static function prepareWorkflowField(Form $form, $data)
13441344
[
13451345
$db->quoteName('default') . ' = 1',
13461346
$db->quoteName('published') . ' = 1',
1347-
$db->quoteName('extension') . ' = "com_modules.module"',
1347+
$db->quoteName('extension') . ' = ' . $db->quote('com_modules.module'),
13481348
]
13491349
);
13501350

administrator/components/com_modules/src/Model/ModulesModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ protected function getListQuery()
347347
// Join over the workflows association
348348
$query->select($db->quoteName('wa.stage_id', 'stage_id'))
349349
->join('INNER', $db->quoteName('#__workflow_associations', 'wa'), $db->quoteName('wa.item_id') . ' = ' . $db->quoteName('a.id'))
350-
->where($db->quoteName('wa.extension') . ' = "com_modules.module"');
350+
->where($db->quoteName('wa.extension') . ' = ' . $db->quote('com_modules.module');
351351

352352
// Join over the workflows stage
353353
$query->select(

0 commit comments

Comments
 (0)