Fix bug.
This commit is contained in:
parent
f174bf290f
commit
4ff65bb079
|
@ -19,7 +19,7 @@ class BulletinLink
|
|||
def add_http
|
||||
tmp = self.url
|
||||
unless tmp.match(/^http(s|):\/\//) || tmp.blank? || tmp.start_with?('/')
|
||||
self.url = 'http://' + tmp
|
||||
self.url = 'https://' + tmp
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue