summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-05-08 07:03:00 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-05-08 07:03:00 +0000
commitc4374cb960a08054bf6b92d375bc8ba9afd6c094 (patch)
treede8e8dc2eec449eda67f1a3debe272798dc89738 /lib
parent3568b3729c6bfff9d2e1e1767d7807393fbbbb7f (diff)
downloadredmine-c4374cb960a08054bf6b92d375bc8ba9afd6c094.tar.gz
redmine-c4374cb960a08054bf6b92d375bc8ba9afd6c094.zip
Email addresses with slashes are not linked correctly (#19735).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@14237 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/wiki_formatting.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/wiki_formatting.rb b/lib/redmine/wiki_formatting.rb
index 4ea59336d..c4e4bb7c3 100644
--- a/lib/redmine/wiki_formatting.rb
+++ b/lib/redmine/wiki_formatting.rb
@@ -135,7 +135,7 @@ module Redmine
# Destructively replaces email addresses into clickable links
def auto_mailto!(text)
- text.gsub!(/([\w\.!#\$%\-+.]+@[A-Za-z0-9\-]+(\.[A-Za-z0-9\-]+)+)/) do
+ text.gsub!(/([\w\.!#\$%\-+.\/]+@[A-Za-z0-9\-]+(\.[A-Za-z0-9\-]+)+)/) do
mail = $1
if text.match(/<a\b[^>]*>(.*)(#{Regexp.escape(mail)})(.*)<\/a>/)
mail