Avoid DOMPurify mess with forward slash in expirationDateString

This commit is contained in:
Haocen Xu 2020-05-30 05:52:15 -04:00
parent 4984194c33
commit 74551f58d7
No known key found for this signature in database
GPG key ID: 3F0D955A0F6AD729

View file

@ -3748,8 +3748,12 @@ jQuery.PrivateBin = (function($, RawDeflate) {
if (expirationDateString !== null) { if (expirationDateString !== null) {
emailBody += EOL; emailBody += EOL;
emailBody += BULLET; emailBody += BULLET;
emailBody += I18n._( // avoid DOMPurify mess with forward slash in expirationDateString
'This link will expire after %s.', emailBody += Helper.sprintf(
I18n._(
'This link will expire after %s.',
'%s'
),
expirationDateString expirationDateString
); );
} }