1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +00:00

Fix notification email sending bug

This commit is contained in:
plt
2012-07-06 15:26:51 +08:00
parent 8cde7867eb
commit 2bc6ad980d
2 changed files with 4 additions and 2 deletions

View File

@@ -23,8 +23,8 @@ site_name = settings.SITE_NAME
subject = u'%s:新消息' % site_name
site_base = settings.SITE_BASE
if site_base[-1] != '/':
site_base += '/'
if site_base[-1] == '/':
site_base = site_base[:-1]
site_root = settings.SITE_ROOT
if site_root[-1] != '/':
site_root += '/'