mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: validate user website
This commit is contained in:
@@ -104,6 +104,7 @@ class UserUpdater
|
||||
attr_reader :user, :guardian
|
||||
|
||||
def format_url(website)
|
||||
return nil if website.blank?
|
||||
website =~ /^http/ ? website : "http://#{website}"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user