summaryrefslogtreecommitdiff
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-10-06 15:15:39 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-10-06 15:15:39 +0300
commit299114948bc12c92fb182e739b7cbb47d310d9e6 (patch)
treee013328df2ab70849590a960a2a00038c38e0117 /app/helpers/application_helper.rb
parent90c96d1dc0ee68c89989b44967e1e94000058d38 (diff)
downloadgitlab-ce-299114948bc12c92fb182e739b7cbb47d310d9e6.tar.gz
Use only escaped auto_link
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 34d312b4100..e8a9c2efadf 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -259,4 +259,8 @@ module ApplicationHelper
super
end
+
+ def escaped_autolink(text)
+ auto_link ERB::Util.html_escape(text), link: :urls
+ end
end