From 4ff65bb07916feb50363846df0893ca4dd8d03fe Mon Sep 17 00:00:00 2001 From: bohung Date: Sat, 19 Nov 2022 10:58:21 +0800 Subject: [PATCH] Fix bug. --- app/models/bulletin_link.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/bulletin_link.rb b/app/models/bulletin_link.rb index 678d2bd..ccb9b52 100644 --- a/app/models/bulletin_link.rb +++ b/app/models/bulletin_link.rb @@ -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