Skip to content

Commit 14ed567

Browse files
Escape string quotes in query
Co-authored-by: Richard Fath <[email protected]>
1 parent 6dc35c6 commit 14ed567

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
@@ -1302,7 +1302,7 @@ public static function prepareWorkflowField(Form $form, $data)
13021302
[
13031303
$db->quoteName('default') . ' = 1',
13041304
$db->quoteName('published') . ' = 1',
1305-
$db->quoteName('extension') . ' = "com_modules.module"',
1305+
$db->quoteName('extension') . ' = ' . $db->quote('com_modules.module'),
13061306
]
13071307
);
13081308

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)