Edgewall Software

Opened 13 years ago

Last modified 13 years ago

#9900 closed defect

Email address entered in the preferences/general dialog is not validated — at Initial Version

Reported by: Carsten Klein <carsten.klein@…> Owned by:
Priority: normal Milestone:
Component: web frontend Version: 0.13dev
Severity: normal Keywords:
Cc: carsten.klein@…, Thijs Triemstra Branch:
Release Notes:
API Changes:
Internal Changes:

Description

This allows users to enter arbitrary email addresses, which, upon enabling notification will cause the MTA to fail upon the invalid email addresses.

This might have an impact on both the logs of the MTA and also on overall system performance in a high load environment.

The attached patch addresses this issue by introducing a new trac.util.validation module currently only providing for rudimentary email address validation based upon email.util.parseaddr and some common sense assertions about emails.

In addition it modifies the trac.prefs.web_ui module so that it will validate the email address prior saving it in the session, adding two more strings to the language files, namely "Invalid email address." and "Your preferences could not be saved."

Change History (1)

by Carsten Klein <carsten.klein@…>, 13 years ago

Attachment: email_validation_patch.diff added

Patch addressing the issue

Note: See TracTickets for help on using tickets.