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:
matt 2005-11-25 04:36:03 +00:00
parent 9410afb60e
commit f2ccb3f21d
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.