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-14 03:33:06 +05:30 committed by GitHub
parent 6c55138589
commit d545a9e127
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 2 deletions

View File

@ -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

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",

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;

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) =>