From ada0c0642d115fa25d1d156e56c24d62e20cb308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Mon, 24 Jan 2022 09:42:55 +0800 Subject: [PATCH] fix error --- app/models/ad_image.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/ad_image.rb b/app/models/ad_image.rb index d41e62f..c30fb9b 100644 --- a/app/models/ad_image.rb +++ b/app/models/ad_image.rb @@ -89,7 +89,7 @@ class AdImage protected def add_http - unless self.out_link.blank? || self.out_link[/^http:\/\//] || self.out_link[/^https:\/\//] + unless self.out_link.blank? || self.out_link[/^http:\/\//] || self.out_link[/^https:\/\//] || self.out_link[/^\//] self.out_link = 'http://' + self.out_link end end