Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add missing escaping to the export type
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Jul 13, 2016
1 parent 551031d commit ceeef53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/display_export.lib.php
Expand Up @@ -250,7 +250,7 @@ function PMA_getOptionsForExportTemplates($export_type)
. PMA\libraries\Util::backquote($cfgRelation['export_templates'])
. " WHERE `username` = "
. "'" . PMA\libraries\Util::sqlAddSlashes($GLOBALS['cfg']['Server']['user'])
. "' AND `export_type` = '" . $export_type . "'"
. "' AND `export_type` = '" . PMA\libraries\Util::sqlAddSlashes($export_type) . "'"
. " ORDER BY `template_name`;";

$result = PMA_queryAsControlUser($query);
Expand Down

0 comments on commit ceeef53

Please sign in to comment.