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>pull/7240/head^2
parent
6c55138589
commit
d545a9e127
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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) =>
|
||||
|
|
Loading…
Reference in New Issue