From 74551f58d721b4e9064300e99fe0fb182d9a42fc Mon Sep 17 00:00:00 2001 From: Haocen Xu Date: Sat, 30 May 2020 05:52:15 -0400 Subject: [PATCH] Avoid DOMPurify mess with forward slash in expirationDateString --- js/privatebin.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index 9708a52..57995bd 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -3748,8 +3748,12 @@ jQuery.PrivateBin = (function($, RawDeflate) { if (expirationDateString !== null) { emailBody += EOL; emailBody += BULLET; - emailBody += I18n._( - 'This link will expire after %s.', + // avoid DOMPurify mess with forward slash in expirationDateString + emailBody += Helper.sprintf( + I18n._( + 'This link will expire after %s.', + '%s' + ), expirationDateString ); }