fixed the email template when the description was marked as a link

This commit is contained in:
Roman Perekhod
2024-06-27 13:38:48 +02:00
parent 6ece248497
commit 3520431e1f
3 changed files with 11 additions and 4 deletions

View 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

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>`
}

View File

@@ -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>