From dac1dfc2564155226f927ebdfa4fc079d80fd01c Mon Sep 17 00:00:00 2001 From: matt Date: Wed, 13 Apr 2005 23:25:48 +0000 Subject: [PATCH] Strip slashes in blog name for email from: git-svn-id: http://svn.automattic.com/wordpress/trunk@2532 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/install.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-admin/install.php b/wp-admin/install.php index 743a8328e6..1b6f7e7ae6 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -169,8 +169,7 @@ $wpdb->query("INSERT INTO $wpdb->comments (comment_post_ID, comment_author, comm $random_password = substr(md5(uniqid(microtime())), 0, 6); $wpdb->query("INSERT INTO $wpdb->users (ID, user_login, user_pass, user_nickname, user_email, user_level, user_idmode, user_registered) VALUES ( '1', 'admin', MD5('$random_password'), '".addslashes(__('Administrator'))."', '$admin_email', '10', 'nickname', NOW() )"); -$from = 'From: '.$_POST['weblog_title'].' '; -$message_headers = "$from"; +$message_headers = 'From: ' . stripslashes($_POST['weblog_title']) . ' '; $message = sprintf(__("Your new WordPress blog has been successfully set up at: %1\$s