You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2018/05/10 15:20:40 UTC
allura git commit: [#1699] Fix replacing characters of the wiki title
in email_address method
Repository: allura
Updated Branches:
refs/heads/master 1587b2ee2 -> 7a92cb6e1
[#1699] Fix replacing characters of the wiki title in email_address method
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/7a92cb6e
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/7a92cb6e
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/7a92cb6e
Branch: refs/heads/master
Commit: 7a92cb6e1f532bedac3eaf071d072e32d76a9403
Parents: 1587b2e
Author: deshanigtk <de...@cse.mrt.ac.lk>
Authored: Thu May 10 16:19:25 2018 +0530
Committer: Dave Brondsema <da...@brondsema.net>
Committed: Thu May 10 11:05:41 2018 -0400
----------------------------------------------------------------------
ForgeWiki/forgewiki/model/wiki.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/7a92cb6e/ForgeWiki/forgewiki/model/wiki.py
----------------------------------------------------------------------
diff --git a/ForgeWiki/forgewiki/model/wiki.py b/ForgeWiki/forgewiki/model/wiki.py
index 9df36e9..1cf165b 100644
--- a/ForgeWiki/forgewiki/model/wiki.py
+++ b/ForgeWiki/forgewiki/model/wiki.py
@@ -175,8 +175,8 @@ class Page(VersionedArtifact, ActivityObject):
def email_address(self):
if context.app.config.options.get('AllowEmailPosting', True):
domain = self.email_domain
- self.title.replace(' ', '_')
- return '%s@%s%s' % (self.title.replace('/', '.'), domain, config.common_suffix)
+ title = self.title.replace(' ', '_')
+ return '%s@%s%s' % (title.replace('/', '.'), domain, config.common_suffix)
else:
return tg_config.get('forgemail.return_path')