From 153de7b61bb27245e25e5e3996f25503c1ff903f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 24 Mar 2009 08:55:07 +0000 Subject: [PATCH] Escape special chars when displaying filename template cookies. --- libraries/display_export.lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/display_export.lib.php b/libraries/display_export.lib.php index 0d7956df8..af82b85d8 100644 --- a/libraries/display_export.lib.php +++ b/libraries/display_export.lib.php @@ -172,19 +172,19 @@ echo PMA_pluginGetJavascript($export_list); echo ' value="'; if ($export_type == 'database') { if (isset($_COOKIE) && !empty($_COOKIE['pma_db_filename_template'])) { - echo $_COOKIE['pma_db_filename_template']; + echo htmlspecialchars($_COOKIE['pma_db_filename_template']); } else { echo $GLOBALS['cfg']['Export']['file_template_database']; } } elseif ($export_type == 'table') { if (isset($_COOKIE) && !empty($_COOKIE['pma_table_filename_template'])) { - echo $_COOKIE['pma_table_filename_template']; + echo htmlspecialchars($_COOKIE['pma_table_filename_template']); } else { echo $GLOBALS['cfg']['Export']['file_template_table']; } } else { if (isset($_COOKIE) && !empty($_COOKIE['pma_server_filename_template'])) { - echo $_COOKIE['pma_server_filename_template']; + echo htmlspecialchars($_COOKIE['pma_server_filename_template']); } else { echo $GLOBALS['cfg']['Export']['file_template_server']; }