Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
[2.3] [HttpFoundation] UploadedFile - moved a security check from move() to isValid() #6802
commented on the diff
Feb 27, 2013
|public function isValid()|
|- return $this->error === UPLOAD_ERR_OK;|
|+ $isOk = $this->error === UPLOAD_ERR_OK;|
|+ return $this->test ? $isOk : $isOk && is_uploaded_file($this->getPathname());|