Project

General

Profile

Patch #41941 » add_tel_to_custom_field_url_pattern.diff

Bernhard Rohloff, 2024-12-06 08:08

View differences:

lib/redmine/helpers/url.rb
23 23
  module Helpers
24 24
    module URL
25 25
      # safe for resources fetched without user interaction?
26
      def uri_with_safe_scheme?(uri, schemes = ['http', 'https', 'ftp', 'mailto', nil])
26
      def uri_with_safe_scheme?(uri, schemes = ['http', 'https', 'ftp', 'mailto', 'tel', nil])
27 27
        # URLs relative to the current document or document root (without a protocol
28 28
        # separator, should be harmless
29 29
        return true unless uri.to_s.include? ":"
(1-1/2)