The branch, master has been updated via 151799f17f63f1329b381f61f0bf0e238565842b (commit) from d84d51c77552bd166c03dcb6a1623f93952ad058 (commit)
- Log ----------------------------------------------------------------- commit 151799f17f63f1329b381f61f0bf0e238565842b Author: Piotr Przybylski piotrprz@gmail.com Date: Thu Jul 14 00:41:11 2011 +0200
Properly escape database name
-----------------------------------------------------------------------
Summary of changes: libraries/export/xml.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libraries/export/xml.php b/libraries/export/xml.php index 85bab5f..cfa07f5 100644 --- a/libraries/export/xml.php +++ b/libraries/export/xml.php @@ -105,7 +105,7 @@ function PMA_exportHeader() { $head .= '<pma_xml_export version="1.0"' . (($export_struct) ? ' xmlns:pma="http://www.phpmyadmin.net/some_doc_url/"' : '') . '>' . $crlf;
if ($export_struct) { - $result = PMA_DBI_fetch_result('SELECT `DEFAULT_CHARACTER_SET_NAME`, `DEFAULT_COLLATION_NAME` FROM `information_schema`.`SCHEMATA` WHERE `SCHEMA_NAME` = ''.$db.'' LIMIT 1'); + $result = PMA_DBI_fetch_result('SELECT `DEFAULT_CHARACTER_SET_NAME`, `DEFAULT_COLLATION_NAME` FROM `information_schema`.`SCHEMATA` WHERE `SCHEMA_NAME` = ''.PMA_sqlAddSlashes($db).'' LIMIT 1'); $db_collation = $result[0]['DEFAULT_COLLATION_NAME']; $db_charset = $result[0]['DEFAULT_CHARACTER_SET_NAME'];
hooks/post-receive