Fixed replace bug

the replace fn takes a string not a byte array
This commit is contained in:
Chris Schmidt 2024-07-22 22:02:06 -06:00 committed by GitHub
parent dca06c85f4
commit 56e11f17f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -505,7 +505,7 @@ if option1 == '2':
# if we specify to track users, this will replace the INSERTUSERHERE # if we specify to track users, this will replace the INSERTUSERHERE
# with the "TO" field. # with the "TO" field.
if track_email.lower() == "on": if track_email.lower() == "on":
body_new = body_new.replace("INSERTUSERHERE", base64.b64encode(to.encode())) body_new = body_new.replace("INSERTUSERHERE", str(base64.b64encode(to.encode())))
# send the actual email # send the actual email
time_delay = check_config("TIME_DELAY_EMAIL=").lower() time_delay = check_config("TIME_DELAY_EMAIL=").lower()
time.sleep(int(time_delay)) time.sleep(int(time_delay))