Fix save booking title unescaped (#7591)

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Alex van Andel <me@alexvanandel.com>
Co-authored-by: Keith Williams <keithwillcode@gmail.com>
This commit is contained in:
Nafees Nazik
2023-03-13 22:03:06 +00:00
committed by GitHub
co-authored by Peer Richelsen Alex van Andel Keith Williams
parent 6c55138589
commit d545a9e127
4 changed files with 7 additions and 2 deletions
@@ -224,7 +224,7 @@ function BookingListItem(booking: BookingItemProps) {
const showRecordingsButtons =
(booking.location === "integrations:daily" || booking?.location?.trim() === "") && isPast && isConfirmed;
const title = decodeURIComponent(booking.title);
const title = booking.title;
return (
<>
<RescheduleDialog
+1
View File
@@ -69,6 +69,7 @@
"bcryptjs": "^2.4.3",
"classnames": "^2.3.1",
"dotenv-cli": "^6.0.0",
"entities": "^4.4.0",
"eslint-config-next": "^13.2.1",
"googleapis": "^84.0.0",
"gray-matter": "^4.0.3",
+3
View File
@@ -19,6 +19,9 @@ export function getEventName(eventNameObj: EventNameObjectType, forAttendeeView
eventName: eventNameObj.eventType,
host: eventNameObj.host,
attendeeName: eventNameObj.attendeeName,
interpolation: {
escapeValue: false,
},
});
let eventName = eventNameObj.eventName;
+2 -1
View File
@@ -1,3 +1,4 @@
import { decodeHTML } from "entities";
import nodemailer from "nodemailer";
import { z } from "zod";
@@ -40,7 +41,7 @@ export default class BaseEmail {
const parseSubject = z.string().safeParse(payload?.subject);
const payloadWithUnEscapedSubject = {
...payload,
...(parseSubject.success && { subject: decodeURIComponent(parseSubject.data) }),
...(parseSubject.success && { subject: decodeHTML(parseSubject.data) }),
};
new Promise((resolve, reject) =>