File Extension Validation
There seems to be an error in the code for the file extension validation.
In order to use it for a simple file name, such as picture.jpg , I have to remove the preg_replace function.
e.g.
$WAFV_Errors .= WAValidateFE(((isset($_FILES["gallery_image"]))?preg_replace('/^.*\./', '', $_FILES["gallery_image"]["name"]) :"") . "",".gif, .jpg, .png",true,2);
Written by server validations, this does not allow any upload.
I have to change it to:
$WAFV_Errors .= WAValidateFE(((isset($_FILES["gallery_image"]))?$_FILES["gallery_image"]["name"]:"") . "",".gif, .jpg, .png",true,2);
to get it to work.