Strip slashes in blog name for email from:
git-svn-id: https://develop.svn.wordpress.org/trunk@2532 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5256ab4601
commit
68f6927368
|
@ -169,8 +169,7 @@ $wpdb->query("INSERT INTO $wpdb->comments (comment_post_ID, comment_author, comm
|
||||||
$random_password = substr(md5(uniqid(microtime())), 0, 6);
|
$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() )");
|
$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'].' <wordpress@'.$_SERVER['SERVER_NAME'].'>';
|
$message_headers = 'From: ' . stripslashes($_POST['weblog_title']) . ' <wordpress@' . $_SERVER['SERVER_NAME'] . '>';
|
||||||
$message_headers = "$from";
|
|
||||||
$message = sprintf(__("Your new WordPress blog has been successfully set up at:
|
$message = sprintf(__("Your new WordPress blog has been successfully set up at:
|
||||||
|
|
||||||
%1\$s
|
%1\$s
|
||||||
|
|
Loading…
Reference in New Issue