mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 13:03:39 +08:00
secure default for the 'find_related_post_with_key' site setting
This commit is contained in:
parent
ec85b41078
commit
88ba052446
|
@ -1389,7 +1389,7 @@ en:
|
|||
email_prefix: "The [label] used in the subject of emails. It will default to 'title' if not set."
|
||||
email_site_title: "The title of the site used as the sender of emails from the site. Default to 'title' if not set. If your 'title' contains characters that are not allowed in email sender strings, use this setting."
|
||||
|
||||
find_related_post_with_key: "Only use the reply key to find the replied-to post. (Recommended if using Amazon SES)"
|
||||
find_related_post_with_key: "Only use the 'reply key' to find the replied-to post. WARNING: disabling this allows user impersonation based on email address."
|
||||
|
||||
minimum_topics_similar: "How many topics need to exist before similar topics are presented when composing new topics."
|
||||
|
||||
|
|
|
@ -633,7 +633,7 @@ email:
|
|||
default: ''
|
||||
validator: "AlternativeReplyByEmailAddressesValidator"
|
||||
find_related_post_with_key:
|
||||
default: false
|
||||
default: true
|
||||
manual_polling_enabled:
|
||||
default: false
|
||||
pop3_polling_enabled:
|
||||
|
|
|
@ -400,7 +400,9 @@ describe Email::Receiver do
|
|||
expect(Topic.last.ordered_posts[-1].post_type).to eq(Post.types[:moderator_action])
|
||||
end
|
||||
|
||||
it "associates email replies using both 'In-Reply-To' and 'References' headers" do
|
||||
it "associates email replies using both 'In-Reply-To' and 'References' headers when 'find_related_post_with_key' is disabled" do
|
||||
SiteSetting.find_related_post_with_key = false
|
||||
|
||||
expect { process(:email_reply_1) }.to change(Topic, :count)
|
||||
|
||||
topic = Topic.last
|
||||
|
|
Loading…
Reference in New Issue
Block a user