Merge pull request #9484 from 2403905/issue-8424

fixed the email template when the description was marked as a link
This commit is contained in:
Michael Barz authored and GitHub committed 2024-07-02 15:11:11 +02:00
commit cb06dcfb23
3 files changed
+11 -4

No files matched your search

@@ -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
+2 -2
View File
@@ -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&#39;reilly has shared "&lt;script&gt;alert(&#39;secrets of the board&#39;);&lt;/script&gt;" 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&#39;reilly has invited you to join "&lt;script&gt;alert(&#39;secret space&#39;);&lt;/script&gt;".
<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>