diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-10-06 15:15:39 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-10-06 15:15:39 +0300 |
commit | 299114948bc12c92fb182e739b7cbb47d310d9e6 (patch) | |
tree | e013328df2ab70849590a960a2a00038c38e0117 /app/helpers/application_helper.rb | |
parent | 90c96d1dc0ee68c89989b44967e1e94000058d38 (diff) | |
download | gitlab-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.rb | 4 |
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 |