Commit 6cf7dd62 authored by Douwe Maan's avatar Douwe Maan

Fix persistent XSS vulnerability around profile website URLs.

parent 24d139ba
Please view this file on the master branch, on stable branches it's out of date.
v 7.10.0 (unreleased)
- Fix persistent XSS vulnerability around profile website URLs.
- Fix broken file browsing with a submodule that contains a relative link (Stan Hu)
- Fix bug where Wiki pages that included a '/' were no longer accessible (Stan Hu)
- Fix bug where error messages from Dropzone would not be displayed on the issues page (Stan Hu)
- Add ability to configure Reply-To address in gitlab.yml (Stan Hu)
......
......@@ -486,13 +486,13 @@ class User < ActiveRecord::Base
end
def full_website_url
return "http://#{website_url}" if website_url !~ /^https?:\/\//
return "http://#{website_url}" if website_url !~ /\Ahttps?:\/\//
website_url
end
def short_website_url
website_url.gsub(/https?:\/\//, '')
website_url.sub(/\Ahttps?:\/\//, '')
end
def all_ssh_keys
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment