我想在我的脚本中提供一个过滤系统。这里是 :
<?php
$allowedExts = array("gif", "jpeg", "jpg", "png","bmp");
$temp = explode(".", $_FILES["file"]["name"]);
$extension = end($temp);
if (in_array($extension, $allowedExts)){
//here is rst of codes
?>
意味着我的脚本将检查扩展名以使用explode. 那么,现在黑客有可能绕过这个系统吗?并上传恶意代码脚本?