Index: lib/redmine/wiki_formatting.rb =================================================================== --- lib/redmine/wiki_formatting.rb (revision 14222) +++ lib/redmine/wiki_formatting.rb (working copy) @@ -135,7 +135,7 @@ # 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(/]*>(.*)(#{Regexp.escape(mail)})(.*)<\/a>/) mail Index: test/unit/lib/redmine/wiki_formatting_test.rb =================================================================== --- test/unit/lib/redmine/wiki_formatting_test.rb (revision 14222) +++ test/unit/lib/redmine/wiki_formatting_test.rb (working copy) @@ -37,12 +37,12 @@ def test_should_link_urls_and_email_addresses raw = <<-DIFF This is a sample *text* with a link: http://www.redmine.org -and an email address foo@example.net +and email addresses foo@example.net and foo/bar@example.net DIFF expected = <<-EXPECTED

This is a sample *text* with a link: http://www.redmine.org
-and an email address

+and email addresses foo@example.net and foo/bar@example.net

EXPECTED assert_equal expected.gsub(%r{[\r\n\t]}, ''), Redmine::WikiFormatting::NullFormatter::Formatter.new(raw).to_html.gsub(%r{[\r\n\t]}, '')