fixed the email template when the description was marked as a link
This commit is contained in:
@@ -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) == "" {
|
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'reilly has shared "<script>alert('secrets of the board');</script>" with you.
|
Dr. O'reilly has shared "<script>alert('secrets of the board');</script>" 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'reilly has invited you to join "<script>alert('secret space');</script>".
|
Dr. O'reilly has invited you to join "<script>alert('secret space');</script>".
|
||||||
<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>
|
||||||
|
|||||||
Reference in New Issue
Block a user