From 562a71f1535f6f509ee0eec4fdf658dee25e25f3 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 9 Jul 2012 09:55:47 +0530 Subject: [PATCH] Fixed issue in Backup Link previously, http:// part was not attached and the url in tag was not within quotes. This was causing the email clients to misinterpret the links. --- py/webnotes/utils/backups.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/webnotes/utils/backups.py b/py/webnotes/utils/backups.py index 164d97cc13..feb3664be9 100644 --- a/py/webnotes/utils/backups.py +++ b/py/webnotes/utils/backups.py @@ -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 = """Click here to begin downloading\ + msg = """Click here to begin downloading\ your backup This link will be valid for 24 hours.