Make WordPress Core

Changeset 3173


Ignore:
Timestamp:
11/20/2005 07:40:17 AM (20 years ago)
Author:
ryan
Message:

stripslashes() from admin email and weblog title since update_option() takes care of escaping them. fixes #1919

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/install.php

    r3133 r3173  
    120120
    121121// Fill in the data we gathered
    122 $weblog_title = $_POST['weblog_title'];
    123 $admin_email = $_POST['admin_email'];
     122$weblog_title = stripslashes($_POST['weblog_title']);
     123$admin_email = stripslashes($_POST['admin_email']);
    124124// check e-mail address
    125125if (empty($admin_email)) {
     
    182182$wpdb->query("INSERT INTO $wpdb->usermeta (user_id, meta_key, meta_value) VALUES ({$wpdb->insert_id}, '{$table_prefix}capabilities', '{$admin_caps}');");
    183183
    184 $message_headers = 'From: ' . stripslashes($_POST['weblog_title']) . ' <wordpress@' . $_SERVER['SERVER_NAME'] . '>';
     184$message_headers = 'From: ' . $weblog_title . ' <wordpress@' . $_SERVER['SERVER_NAME'] . '>';
    185185$message = sprintf(__("Your new WordPress blog has been successfully set up at:
    186186
Note: See TracChangeset for help on using the changeset viewer.