diff --git a/4chan_x.user.js b/4chan_x.user.js
index eceb937a6..e68bc5037 100644
--- a/4chan_x.user.js
+++ b/4chan_x.user.js
@@ -3714,7 +3714,7 @@
capcode: data.capcode,
tripcode: data.trip,
uniqueID: data.id,
- email: data.email.replace(/\s/g, '%20'),
+ email: data.email ? encodeURIComponent(data.email) : '',
subject: data.sub,
flagCode: data.country,
flagName: data.country_name,
@@ -3783,7 +3783,7 @@
capcodeStart = '';
capcode = '';
}
- flag = flagCode ? (" ") : '';
+ flag = flagCode ? ("
") : '';
if (file != null ? file.isDeleted : void 0) {
fileHTML = isOP ? ("
") + "
") + "
") + "
") + "