Skip to content

Commit

Permalink
No longer depend on grab_globals.lib.php for $_POST variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Delisle committed Mar 10, 2012
1 parent d77db96 commit e6bfd36
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions db_create.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@
}
require './libraries/build_html_for_db.lib.php';

/**
* Sets globals from $_POST
*/
$post_params = array(
'db_collation',
'new_db'
);
foreach ($post_params as $one_post_param) {
if (isset($_POST[$one_post_param])) {
$GLOBALS[$one_post_param] = $_POST[$one_post_param];
}
}

PMA_checkParameters(array('new_db'));

/**
Expand Down

0 comments on commit e6bfd36

Please sign in to comment.