From 89029b7c2bd81d2a3c2a8c6f68ed5c911e7e4d4b Mon Sep 17 00:00:00 2001 From: Alex Dunn Date: Fri, 20 Apr 2018 11:03:22 -0700 Subject: [PATCH] ApplicationHelper#linkify: fix URI replace regexp Fixes DIGREPO-887. --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 052de5a94..c78510a40 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -7,7 +7,7 @@ module ApplicationHelper # @return [String] def linkify(string) string.gsub(URI.regexp(%w[http https]), - '\1://\4') + '\1://\4\7') end # Used in {CatalogController} to render notes and restrictions as