Trim submitted values, fixes #1954
git-svn-id: https://develop.svn.wordpress.org/trunk@3208 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
afbf42d99f
commit
eeba7edaca
@ -105,11 +105,11 @@ switch($step) {
|
||||
break;
|
||||
|
||||
case 2:
|
||||
$dbname = $_POST['dbname'];
|
||||
$uname = $_POST['uname'];
|
||||
$passwrd = $_POST['pwd'];
|
||||
$dbhost = $_POST['dbhost'];
|
||||
$prefix = $_POST['prefix'];
|
||||
$dbname = trim($_POST['dbname']);
|
||||
$uname = trim($_POST['uname']);
|
||||
$passwrd = trim($_POST['pwd']);
|
||||
$dbhost = trim($_POST['dbhost']);
|
||||
$prefix = trim($_POST['prefix']);
|
||||
if (empty($prefix)) $prefix = 'wp_';
|
||||
|
||||
// Test the db connection.
|
||||
|
Loading…
Reference in New Issue
Block a user