cloudinary / cloudinary/cloudinary_gem
Transformation params not properly URL escaped
- Langage dominant
- Ruby
- Étoiles
- 420
- Forks
- 285
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
## 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)
- [ ] Build - Cannot install or import the SDK
- [ ] Performance - Performance issues
- [x] Behaviour - Functions are not working as expected (such as generate URL)
- [ ] Documentation - Inconsistency between the docs and behaviour
- [ ] Other (Specify)
## 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
- [ ] Linux
- [ ] Windows
- [x] macOS
- [ ] All
## Environment and Libraries (fill in the version numbers)
- Cloudinary Ruby SDK version - cloudinary (1.29.0)
- Ruby Version - ruby 3.3.0
- Rails Version - Rails 7.1.3.2
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par Cloudinary::Utils.cloudinary_url et reproduisez le problème avec les paramètres de transformation indiqués, en particulier la valeur de couleur contenant un guillemet double. Suivez la manière dont l’URL est formulée et vérifiez que l’URL obtenue échappe correctement le guillemet et est valide.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- ruby
- Domaine
- backend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100