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

This commit is contained in:
Roman Perekhod
2024-06-27 13:51:12 +02:00
parent 6ece248497
commit 3520431e1f
3 changed files with 11 additions and 4 deletions
@@ -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) == "" { if strings.TrimSpace(s) == "" {
return "" return ""
} }
s = strings.TrimSuffix(s, "{{ .ShareLink }}") s = strings.TrimSuffix(s, "{ShareLink}")
return `<a href="{{ .ShareLink }}">` + s + `</a>` return s + `<a href="{ShareLink}">{ShareLink}</a>`
} }
@@ -315,7 +315,7 @@ https://owncloud.com
<br><br> <br><br>
Dr. O&#39;reilly has shared "&lt;script&gt;alert(&#39;secrets of the board&#39;);&lt;/script&gt;" with you. Dr. O&#39;reilly has shared "&lt;script&gt;alert(&#39;secrets of the board&#39;);&lt;/script&gt;" with you.
<br><br> <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> </td>
</tr> </tr>
<tr> <tr>
@@ -384,7 +384,7 @@ https://owncloud.com
<br><br> <br><br>
Dr. O&#39;reilly has invited you to join "&lt;script&gt;alert(&#39;secret space&#39;);&lt;/script&gt;". Dr. O&#39;reilly has invited you to join "&lt;script&gt;alert(&#39;secret space&#39;);&lt;/script&gt;".
<br><br> <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> </td>
</tr> </tr>
<tr> <tr>