mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 08:11:52 +01:00
Trim submitted values, fixes #1954
git-svn-id: http://svn.automattic.com/wordpress/trunk@3208 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9410afb60e
commit
f2ccb3f21d
@ -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