WordPress.org

Make WordPress Core

Changeset 3208


Ignore:
Timestamp:
11/25/2005 04:36:03 AM (16 years ago)
Author:
matt
Message:

Trim submitted values, fixes #1954

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/setup-config.php

    r2945 r3208  
    106106   
    107107    case 2:
    108     $dbname = $_POST['dbname'];
    109     $uname = $_POST['uname'];
    110     $passwrd = $_POST['pwd'];
    111     $dbhost = $_POST['dbhost'];
    112     $prefix = $_POST['prefix'];
     108    $dbname  = trim($_POST['dbname']);
     109    $uname   = trim($_POST['uname']);
     110    $passwrd = trim($_POST['pwd']);
     111    $dbhost  = trim($_POST['dbhost']);
     112    $prefix  = trim($_POST['prefix']);
    113113    if (empty($prefix)) $prefix = 'wp_';
    114114
Note: See TracChangeset for help on using the changeset viewer.