The branch, master has been updated
       via  151799f17f63f1329b381f61f0bf0e238565842b (commit)
      from  d84d51c77552bd166c03dcb6a1623f93952ad058 (commit)


- Log -----------------------------------------------------------------
commit 151799f17f63f1329b381f61f0bf0e238565842b
Author: Piotr Przybylski <[email protected]>
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
-- 
phpMyAdmin

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Phpmyadmin-git mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-git

Reply via email to