aboutsummaryrefslogtreecommitdiffstats
path: root/syz-cluster
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-07-11 19:46:20 +0200
committerAleksandr Nogikh <nogikh@google.com>2025-07-14 11:30:46 +0000
commit631d707cbad63e35e627518714ddc3ceb6b102b2 (patch)
tree2e38809ef98e51adbb0b63db222fd1d1e6fe0f03 /syz-cluster
parentec20f94ff6effe4c2aab4b4a4ecdfb33180e6e77 (diff)
syz-cluster/pkg/report: don't html escape emails
We send plain text emails, there's no reason to escape them.
Diffstat (limited to 'syz-cluster')
-rw-r--r--syz-cluster/pkg/report/email.go2
-rw-r--r--syz-cluster/pkg/report/testdata/1.in.json2
-rw-r--r--syz-cluster/pkg/report/testdata/1.moderation.txt2
-rw-r--r--syz-cluster/pkg/report/testdata/1.upstream.txt2
4 files changed, 4 insertions, 4 deletions
diff --git a/syz-cluster/pkg/report/email.go b/syz-cluster/pkg/report/email.go
index c00a770b6..07ed9efdf 100644
--- a/syz-cluster/pkg/report/email.go
+++ b/syz-cluster/pkg/report/email.go
@@ -6,7 +6,7 @@ package report
import (
"bytes"
"embed"
- "html/template"
+ "text/template"
"github.com/google/syzkaller/syz-cluster/pkg/api"
"github.com/google/syzkaller/syz-cluster/pkg/app"
diff --git a/syz-cluster/pkg/report/testdata/1.in.json b/syz-cluster/pkg/report/testdata/1.in.json
index 68dea8d69..41ac3947a 100644
--- a/syz-cluster/pkg/report/testdata/1.in.json
+++ b/syz-cluster/pkg/report/testdata/1.in.json
@@ -1,7 +1,7 @@
{
"id": "abcd",
"series": {
- "title": "Series title",
+ "title": "Series title''",
"version": 2,
"link": "http://link/to/series",
"patches": [
diff --git a/syz-cluster/pkg/report/testdata/1.moderation.txt b/syz-cluster/pkg/report/testdata/1.moderation.txt
index c90ad82a6..1ba7d79bf 100644
--- a/syz-cluster/pkg/report/testdata/1.moderation.txt
+++ b/syz-cluster/pkg/report/testdata/1.moderation.txt
@@ -1,6 +1,6 @@
syzbot has tested the following series
-[v2] Series title
+[v2] Series title''
http://link/to/series
* first patch
* second patch
diff --git a/syz-cluster/pkg/report/testdata/1.upstream.txt b/syz-cluster/pkg/report/testdata/1.upstream.txt
index 66c5b91a2..327d1fcb1 100644
--- a/syz-cluster/pkg/report/testdata/1.upstream.txt
+++ b/syz-cluster/pkg/report/testdata/1.upstream.txt
@@ -1,6 +1,6 @@
syzbot has tested the following series
-[v2] Series title
+[v2] Series title''
http://link/to/series
* first patch
* second patch