Overview
Comment: | Seulement certains types d'images sont acceptés (corrige erreur avec les fichiers BMP) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA1: |
75f89f129a23685c6d3f5c7291dd4d89 |
User & Date: | bohwaz on 2017-10-24 06:19:59 |
Other Links: | manifest | tags |
References
2020-12-08
| ||
23:25 | • Wiki page "Changelog/0.9" artifact: b9c916b4d1 user: bohwaz | |
Context
2017-10-25
| ||
03:42 | Fix [b08f3855636a70c46c228607069bcb57352afc20] check-in: d437bb378d user: bohwaz tags: trunk | |
2017-10-24
| ||
06:19 | Seulement certains types d'images sont acceptés (corrige erreur avec les fichiers BMP) check-in: 75f89f129a user: bohwaz tags: trunk, stable | |
06:06 | Corrige bug rapporté par @Christine : catégories cachées ne sont plus filtrables dans la liste des membres check-in: 8cd03c1209 user: bohwaz tags: trunk, stable | |
Changes
Modified src/include/lib/Garradin/Fichiers.php from [6cbae156df] to [0354ffcea4].
︙ | ︙ | |||
510 511 512 513 514 515 516 | { $ext = substr($name, strrpos($name, '.')+1); $ext = strtolower($ext); $type = \KD2\FileInfo::getMimeTypeFromFileExtension($ext); } | | | 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 | { $ext = substr($name, strrpos($name, '.')+1); $ext = strtolower($ext); $type = \KD2\FileInfo::getMimeTypeFromFileExtension($ext); } $is_image = preg_match('/^image\/(?:png|jpe?g|gif)$/', $type); $db = DB::getInstance(); $db->begin(); // Il peut arriver que l'on renvoie ici un fichier déjà stocké, auquel cas, ne pas le re-stocker if (!($id_contenu = $db->firstColumn('SELECT id FROM fichiers_contenu WHERE hash = ?;', $hash))) |
︙ | ︙ |