Well, it would solve the issue that currently files are being parsed too.
Would it be possible to create a sql that selects attachments with certain extensions only?
For example $vboptions[galleryextensions] returns the value jpg,bmp,png and adjust the sql to only return attachments with these extensions. It's not exactly a condition, but i guess it might be a bit easier to implement?
Would a plugin hooked into attachment.php which checks for certain extensions in the upload field require less resources than the above?
I guess it's the last thing that would make this gallery fool proof.
|