mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-08 21:30:07 -06:00
fixed the email template when the description was marked as a link
This commit is contained in:
7
changelog/unreleased/fix-email-template.md
Normal file
7
changelog/unreleased/fix-email-template.md
Normal file
@@ -0,0 +1,7 @@
|
||||
Bugfix: Fixed the email template
|
||||
|
||||
Fixed the email template when the description was marked as a link.
|
||||
|
||||
|
||||
https://github.com/owncloud/ocis/pull/9484
|
||||
https://github.com/owncloud/ocis/issues/8424
|
||||
@@ -89,6 +89,6 @@ func callToActionToHTML(s string) string {
|
||||
if strings.TrimSpace(s) == "" {
|
||||
return ""
|
||||
}
|
||||
s = strings.TrimSuffix(s, "{{ .ShareLink }}")
|
||||
return `<a href="{{ .ShareLink }}">` + s + `</a>`
|
||||
s = strings.TrimSuffix(s, "{ShareLink}")
|
||||
return s + `<a href="{ShareLink}">{ShareLink}</a>`
|
||||
}
|
||||
|
||||
@@ -315,7 +315,7 @@ https://owncloud.com
|
||||
<br><br>
|
||||
Dr. O'reilly has shared "<script>alert('secrets of the board');</script>" with you.
|
||||
<br><br>
|
||||
<a href="files/shares/with-me">Click here to view it: files/shares/with-me</a>
|
||||
Click here to view it: <a href="files/shares/with-me">files/shares/with-me</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -384,7 +384,7 @@ https://owncloud.com
|
||||
<br><br>
|
||||
Dr. O'reilly has invited you to join "<script>alert('secret space');</script>".
|
||||
<br><br>
|
||||
<a href="f/spaceid">Click here to view it: f/spaceid</a>
|
||||
Click here to view it: <a href="f/spaceid">f/spaceid</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user