mirror of
https://github.com/processwire/processwire.git
synced 2025-08-16 19:54:24 +02:00
Various minor updates
This commit is contained in:
@@ -330,6 +330,7 @@ class WireUpload extends Wire {
|
||||
$extension = strtolower($pathInfo['extension']);
|
||||
|
||||
if(in_array($extension, $this->badExtensions)) return false;
|
||||
if(strpos($extension, 'php') === 0) return false;
|
||||
if(in_array($extension, $this->validExtensions)) return true;
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user