Fixed bug that caused HTML password notification email messages to be displayed in raw form.

This commit is contained in:
Ross Scroggs
2024-01-22 09:52:26 -08:00
parent 741b69ff2d
commit a404af0582
5 changed files with 17 additions and 9 deletions

View File

@@ -14367,7 +14367,7 @@ def sendCreateUpdateUserNotification(body, basenotify, tagReplacements, i=0, cou
if not html:
notify[field] = notify[field].replace('#password#', notify['password'])
else:
notify[field] = notify[field].replace('#password#', notify['password']).replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;')
notify[field] = notify[field].replace('#password#', notify['password'].replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;'))
userName, domain = splitEmailAddress(body['primaryEmail'])
notify = basenotify.copy()