Fix Link to OWASP CSRF more information page

closes #8365
This commit is contained in:
Benjamin Neff 2022-07-13 23:29:33 +02:00
parent dd3bc39c97
commit a5e5c7f378
No known key found for this signature in database
GPG key ID: 971464C3F1A90194
4 changed files with 7 additions and 3 deletions

View file

@ -6,10 +6,14 @@
* Fix deprecation warnings for sidekiq 7.0 [#8359](https://github.com/diaspora/diaspora/pull/8359) * Fix deprecation warnings for sidekiq 7.0 [#8359](https://github.com/diaspora/diaspora/pull/8359)
* Remove entypo-rails dependency to prepare for rails 6 [#8361](https://github.com/diaspora/diaspora/pull/8361) * Remove entypo-rails dependency to prepare for rails 6 [#8361](https://github.com/diaspora/diaspora/pull/8361)
* Remove compass-rails dependency which is not supported anymore [#8362](https://github.com/diaspora/diaspora/pull/8362) * Remove compass-rails dependency which is not supported anymore [#8362](https://github.com/diaspora/diaspora/pull/8362)
* Remove markerb dependency which doesn't exist anymore [#8365](https://github.com/diaspora/diaspora/pull/8365)
## Bug fixes ## Bug fixes
* Fix that no mails were sent after photo export [#8365](https://github.com/diaspora/diaspora/pull/8365)
* Fix people with quotes in the name causing issues with mail sender [#8365](https://github.com/diaspora/diaspora/pull/8365)
## Features ## Features
* Render posts and comments as HTML in HTML mails [#8365](https://github.com/diaspora/diaspora/pull/8365)
# 0.7.17.0 # 0.7.17.0

View file

@ -1,4 +1,4 @@
- message = t("notifier.csrf_token_fail.body", - message = t("notifier.csrf_token_fail.body",
name: @notification.recipient_first_name, name: @notification.recipient_first_name,
link: "https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)") link: "https://owasp.org/www-community/attacks/csrf")
!= Redcarpet::Markdown.new(Diaspora::Markdownify::Email).render(message) != Redcarpet::Markdown.new(Diaspora::Markdownify::Email).render(message)

View file

@ -1,3 +1,3 @@
<%= t("notifier.csrf_token_fail.body", <%= t("notifier.csrf_token_fail.body",
name: @notification.recipient_first_name, name: @notification.recipient_first_name,
link: "https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)") %> link: "https://owasp.org/www-community/attacks/csrf") %>

View file

@ -548,7 +548,7 @@ describe Notifier, type: :mailer do
it "has some informative text in the body" do it "has some informative text in the body" do
email.body.parts.each do |part| email.body.parts.each do |part|
expect(part.decoded).to include("https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)") expect(part.decoded).to include("https://owasp.org/www-community/attacks/csrf")
end end
end end
end end