You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tags that contain non-uri-component-safe characters are not readable using the resources_by_tag method. Example:
tag='with/some?bad=characters'Cloudinary::Uploader.upload(url,tags: [tag])# correctly encodes value# will not see the uploadCloudinary::Api.resources_by_tag(tag)# because uri = "resources/#{resource_type}/tags/#{tag}"# Work around, will see the uploadCloudinary::Api.resources_by_tag(URI.encode_www_form_component(tag))
I'm opening an issue rather than a pull request because the code seems to have a lot of direct URI assembling, so the issue almost certainly exists elsewhere in the code. Most sites seem to have more constrained elements (type, public_id, etc.), but it does not hurt to encode them too.
The text was updated successfully, but these errors were encountered:
Tags that contain non-uri-component-safe characters are not readable using the
resources_by_tag
method. Example:This looks to be caused by assembling the URI without encoding.
I'm opening an issue rather than a pull request because the code seems to have a lot of direct URI assembling, so the issue almost certainly exists elsewhere in the code. Most sites seem to have more constrained elements (
type
,public_id
, etc.), but it does not hurt to encode them too.The text was updated successfully, but these errors were encountered: