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:
Matt Mullenweg 2005-11-25 04:36:03 +00:00
parent afbf42d99f
commit eeba7edaca
1 changed files with 5 additions and 5 deletions

View File

@ -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.