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
module Helpers
module URL
# safe for resources fetched without user interaction?
def uri_with_safe_scheme?(uri, schemes = ['http', 'https', 'ftp', 'mailto', nil])
def uri_with_safe_scheme?(uri, schemes = ['http', 'https', 'ftp', 'mailto', 'tel', nil])
# URLs relative to the current document or document root (without a protocol
# separator, should be harmless
return true unless uri.to_s.include? ":"
(1-1/2)