Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

AO3-5201 Add insecure to list of urls allowed to report #3102

Merged
merged 1 commit into from Oct 11, 2017
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
@@ -34,7 +34,7 @@ def clean_url
end
end
- app_url_regex = Regexp.new('^https?:\/\/(www\.)?' +
+ app_url_regex = Regexp.new('^https?:\/\/(www\.|insecure\.)?' +
ArchiveConfig.APP_HOST, true)
validates_format_of :url, with: app_url_regex,
message: ts('does not appear to be on this site.'),