Makes sense yes.. although it also has some added overhead.
Another thing to keep in mind, not that I think it will be a danger
directly.. but just spawing off a loader for the correct type, whenever the
extension is wrong, might be dangerous from a security perspective. Suppose
format "jpg" could contain a virus, and a general loader is used which is
affected, someone might send a "bmp" file, disguised as "jpg", and when
opening this seemingly innocent file, you would still get infected.
"Remy Lebeau (TeamB)" < XXXX@XXXXX.COM > schreef in bericht