]> git.joonet.de Git - adminer.git/commitdiff
Comments
authorJakub Vrana <jakub@vrana.cz>
Sun, 17 Oct 2010 19:58:02 +0000 (21:58 +0200)
committerJakub Vrana <jakub@vrana.cz>
Sun, 17 Oct 2010 19:58:02 +0000 (21:58 +0200)
adminer/database.inc.php
readme.txt

index 946152890e3e3a88c090b0b2f09a10b2eda7206a..87f31dd735211b3a8bc51f652c41727d990b14e3 100644 (file)
@@ -28,7 +28,7 @@ if ($_POST && !$error && !isset($_POST["add_x"])) { // add is an image and PHP c
                if (!$_POST["collation"]) {
                        redirect(substr(ME, 0, -1));
                }
-               query_redirect("ALTER DATABASE " . idf_escape($_POST["name"]) . (eregi('^[a-z0-9_]+$', $_POST["collation"]) ? " COLLATE $_POST[collation]" : ""), substr(ME, 0, -1), lang('Database has been altered.')); //! SQL injection - quotes are not allowed in MS SQL 2005
+               query_redirect("ALTER DATABASE " . idf_escape($_POST["name"]) . (eregi('^[a-z0-9_]+$', $_POST["collation"]) ? " COLLATE $_POST[collation]" : ""), substr(ME, 0, -1), lang('Database has been altered.'));
        }
 }
 
index ad3301a44841af2d29dd946b9d4be885e406a66a..02f0c70a873b7f4cc6baacb333b3c7ad731409b4 100644 (file)
@@ -1,5 +1,5 @@
 Adminer - Database management in single PHP file
-Adminer Editor - Database editor in single PHP file
+Adminer Editor - Data manipulation for end-users
 
 http://www.adminer.org/
 Supports: MySQL, PostgreSQL, SQLite, MS SQL, Oracle
@@ -8,6 +8,7 @@ Apache License, Version 2.0
 
 adminer/index.php - Run development version of Adminer
 editor/index.php - Run development version of Adminer Editor
+editor/example.php - Example customization
 compile.php [driver] [lang] - Create a single file version
 lang.php [lang] - Update translations
 tests/selenium.html - Selenium test suite