fix: prevent HTML encoding of forward slash in booking confirmation (#26949)
- Add interpolation: { escapeValue: false } to AttendeeRequestEmail.tsx
- Add interpolation: { escapeValue: false } to attendee-request-email.ts
- Add interpolation: { escapeValue: false } to bookings-single-view.tsx
This prevents special characters like '/' from being HTML-encoded to '/'
in booking confirmation emails and success page dialogs.
Fixes #26938
This commit is contained in:
@@ -313,6 +313,7 @@ export default function Success(props: PageProps) {
|
||||
if (props.profile.name !== null) {
|
||||
return t(`user_needs_to_confirm_or_reject_booking${titleSuffix}`, {
|
||||
user: props.profile.name,
|
||||
interpolation: { escapeValue: false },
|
||||
});
|
||||
}
|
||||
return t(`needs_to_be_confirmed_or_rejected${titleSuffix}`);
|
||||
|
||||
@@ -15,7 +15,7 @@ export const AttendeeRequestEmail = (props: React.ComponentProps<typeof Attendee
|
||||
props.calEvent.recurringEvent?.count
|
||||
? "user_needs_to_confirm_or_reject_booking_recurring"
|
||||
: "user_needs_to_confirm_or_reject_booking",
|
||||
{ user: props.calEvent.organizer.name }
|
||||
{ user: props.calEvent.organizer.name, interpolation: { escapeValue: false } }
|
||||
)}
|
||||
</>
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ export default class AttendeeRequestEmail extends AttendeeScheduledEmail {
|
||||
}),
|
||||
this.calEvent.attendees[0].language.translate("user_needs_to_confirm_or_reject_booking", {
|
||||
user: this.calEvent.organizer.name,
|
||||
interpolation: { escapeValue: false },
|
||||
})
|
||||
),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user