Evolution #3482
Sanitizer les SVG
0%
Description
Related issues
History
#1
Updated by cedric - over 5 years ago
- Related to Evolution #2970: Logos en SVG added
#2
Updated by RealET 🔸 over 3 years ago
Un article pour compléter https://korben.info/uploader-fichier-svg-wordpress.html
Contient des liens vers des explications du danger.
Et le lien vers un plugin WP qui gère(rait) la sécurité des SVG.
#3
Updated by b b over 3 years ago
#4
Updated by kent1 - over 3 years ago
b b a écrit :
Voir la lib https://github.com/darylldoyle/svg-sanitizer cf https://seenthis.net/messages/621498
J'ai fais une fonction de sanitization (buuuuh) simple dans le plugin logo svg sur github ici :
https://github.com/cahri/spip-logo-svg/pull/5/commits/9acdf7d0c4d1e80273fd83bf64ae5c88f5fe6bae pour l'ajout de la lib
https://github.com/cahri/spip-logo-svg/pull/5/commits/19fb4b64623abf2fa23642a691a5217dca5380c7 pour la fonction de nettoyage elle même
https://github.com/cahri/spip-logo-svg/pull/5/commits/e873a03a73e649302926e52dc41c80094c641703 pour son appel dans la fonction verifier du formulaire editer_logo
#5
Updated by kent1 - over 3 years ago
kent1 - a écrit :
b b a écrit :
Voir la lib https://github.com/darylldoyle/svg-sanitizer cf https://seenthis.net/messages/621498
J'ai fais une fonction de sanitization (buuuuh) simple dans le plugin logo svg sur github ici :
https://github.com/cahri/spip-logo-svg/pull/5/commits/9acdf7d0c4d1e80273fd83bf64ae5c88f5fe6bae pour l'ajout de la lib
https://github.com/cahri/spip-logo-svg/pull/5/commits/19fb4b64623abf2fa23642a691a5217dca5380c7 pour la fonction de nettoyage elle même
https://github.com/cahri/spip-logo-svg/pull/5/commits/e873a03a73e649302926e52dc41c80094c641703 pour son appel dans la fonction verifier du formulaire editer_logo
Bon c'est pas 100% efficace https://github.com/darylldoyle/svg-sanitizer/issues/16
#6
Updated by b b about 3 years ago
- Target version changed from 3.1 to 3.2
#7
Updated by cedric - over 1 year ago
- Status changed from Nouveau to Fermé
- Target version changed from 3.2 to 3.3
- Resolution set to fixed
Intégré dans SPIP 3.3 https://zone.spip.org/trac/spip-zone/changeset/116012