Fix conflict
Merge pull request #5780 from lucasmichot/4.2-validation-validatemimes

[4.2] Validation : simplify validateMimes