for artist urls, normalize https
This commit is contained in:
@@ -7,6 +7,7 @@ class ArtistUrl < ActiveRecord::Base
|
||||
if url.nil?
|
||||
nil
|
||||
else
|
||||
url = url.gsub(/^https:\/\//, "http://")
|
||||
url = url.gsub(/^http:\/\/blog\d+\.fc2/, "http://blog.fc2")
|
||||
url = url.gsub(/^http:\/\/blog-imgs-\d+\.fc2/, "http://blog.fc2")
|
||||
url = url.gsub(/^http:\/\/blog-imgs-\d+-\w+\.fc2/, "http://blog.fc2")
|
||||
@@ -22,6 +23,7 @@ class ArtistUrl < ActiveRecord::Base
|
||||
url = File.dirname(url)
|
||||
end
|
||||
|
||||
url = url.gsub(/^https:\/\//, "http://")
|
||||
url = url.gsub(/^http:\/\/blog\d+\.fc2/, "http://blog*.fc2")
|
||||
url = url.gsub(/^http:\/\/blog-imgs-\d+\.fc2/, "http://blog*.fc2")
|
||||
url = url.gsub(/^http:\/\/blog-imgs-\d+-\w+\.fc2/, "http://blog*.fc2")
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "users/secondary_links" %>
|
||||
|
||||
<% content_for(:page_title) do %>
|
||||
Edit User - <%= Danbooru.config.app_name %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user