Kamal Bhatt escribió:

Hi
I have noticed something curious about imageop. We allow our clients to enter images into our system. Now, and we know this is bad design, they are allowed to enter images with incorrect suffixes or no suffix. One image had a suffix of JPG but turned out to be BMP. This caused imageop to crash and burn. If we removed the suffix, it seems to work. Two questions, is this default behaviour (ie, if no suffix is given assume BMP) or is there some clever decision made about what file format it is? If this is the case that there is some clever processing occuring, how can I get this behaviour all the time (ie ignore the suffix)? I have looked at the code and I am obviously missing something because I do not see logic for this.

Cheers.

If you don't want to rely on file suffixes a possible solution is to set a different file suffix as .img .

Best Regards,

Antonio Gallardo.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to