Merge pull request #1969 from alphagov/no-free-text-from-url

Don’t populate support form with arbitrary text
This commit is contained in:
Chris Hill-Scott
2018-03-21 14:34:19 +00:00
committed by GitHub
5 changed files with 62 additions and 8 deletions

View File

@@ -464,6 +464,17 @@ class AgreementInfo:
else:
return 'Cant tell'
def as_request_for_agreement(self, with_owner=False):
if with_owner and self.owner:
return (
'Please send me a copy of the GOV.UK Notify data sharing '
'and financial agreement for {} to sign.'.format(self.owner)
)
return (
'Please send me a copy of the GOV.UK Notify data sharing '
'and financial agreement.'
)
@staticmethod
def get_matching_function(email_address_or_domain):