Fixed issue in Backup Link
previously, http:// part was not attached and the url in <a> tag was not within quotes. This was causing the email clients to misinterpret the links.
This commit is contained in:
parent
41712834fa
commit
562a71f153
1 changed files with 2 additions and 2 deletions
|
|
@ -89,12 +89,12 @@ class BackupGenerator:
|
|||
"""
|
||||
backup_url = webnotes.conn.get_value('Website Settings',
|
||||
'Website Settings', 'subdomain') or ''
|
||||
backup_url = os.path.join(backup_url, 'backups')
|
||||
backup_url = os.path.join('http://' + backup_url, 'backups')
|
||||
file_url = os.path.join(backup_url, backup_file)
|
||||
from webnotes.utils.email_lib import sendmail
|
||||
|
||||
recipient_list = self.get_recipients()
|
||||
msg = """<a href=%(file_url)s>Click here to begin downloading\
|
||||
msg = """<a href="%(file_url)s">Click here to begin downloading\
|
||||
your backup</a>
|
||||
|
||||
This link will be valid for 24 hours.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue