Patch #41941 » add_tel_to_custom_field_url_pattern.diff
| 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? ":"
|
||