DEV: Remove deprecated UrlHelper#escape_uri helper (#24002)
The UrlHelper#escape_uri helper has been deprecated and replaced by UrlHelper#normalized_encode, and was marked for removal in 3.0. This PR removes the method.
This commit is contained in:
parent
b4eb078b0e
commit
47b2667099
|
@ -66,15 +66,6 @@ class UrlHelper
|
|||
self.absolute(Upload.secure_uploads_url_from_upload_url(url), nil)
|
||||
end
|
||||
|
||||
def self.escape_uri(uri)
|
||||
Discourse.deprecate(
|
||||
"UrlHelper.escape_uri is deprecated. For normalization of user input use `.normalized_encode`. For true encoding, use `.encode`",
|
||||
output_in_test: true,
|
||||
drop_from: "3.0",
|
||||
)
|
||||
normalized_encode(uri)
|
||||
end
|
||||
|
||||
def self.normalized_encode(uri)
|
||||
url = uri.to_s
|
||||
|
||||
|
|
Loading…
Reference in New Issue