Skip to content

Commit

Permalink
Update webmonitoring.py
Browse files Browse the repository at this point in the history
Defang analysed URL in email :)
  • Loading branch information
FafnerKeyZee authored Nov 10, 2023
1 parent 7bb5467 commit 04b2ef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webmonitoring/webmonitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ def process_notifications(self):
def prepare_notification_mail(self, mail_to: Union[str, List[str]], monitor_uuid: str, comparison_results: Dict[str, Any]) -> EmailMessage:
logger = MonitoringLogAdapter(self.master_logger, {'uuid': monitor_uuid})
capture_settings = self.get_capture_settings(monitor_uuid)
captured_url = capture_settings['url']
captured_url = defang(capture_settings['url'])
email_config = get_config('generic', 'email')
msg = EmailMessage()
msg['Subject'] = f"Monitoring notification for {monitor_uuid}"
Expand Down

0 comments on commit 04b2ef8

Please sign in to comment.