-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transformation params not properly URL escaped #540
Comments
Hi @stirkac , Thank you for reaching out. The example you have provided won't work and you will get: Could you share your use case? Best Regards, |
Sorry, I made an assumption, but the actual value can be seen from the screenshot that is added:
and the resulting url: |
Hi @stirkac, We do encode color, if a valid color is passed, for example, |
Bug report for Cloudinary Ruby SDK
Before proceeding, please update to latest version and test if the issue persists - DONE
Describe the bug in a sentence or two.
If the parameters passed to transformation contain a double quote, they are not properly escaped when formulating cloudinary URL, causing invalid URL to be generated
Issue Type (Can be multiple)
Steps to reproduce
Run
Cloudinary::Utils.cloudinary_url(VIDEO_ID_HERE,{ resource_type: "video", transformation: [{color: '"abc', overlay: { font_family: "Times", font_size: 12, font_weight: "bold", text: "..." }}])
note the '"abc' for the color
Error screenshots or Stack Trace (if applicable)
Operating System
Environment and Libraries (fill in the version numbers)
The text was updated successfully, but these errors were encountered: