New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check if $upload['tmp_name']
is set before using it
#6486
Check if $upload['tmp_name']
is set before using it
#6486
Conversation
…with "tmp_name" key
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to check for an invalid array access.
Co-authored-by: Leo Feyer <1192057+leofeyer@users.noreply.github.com>
Co-authored-by: Yanick Witschi <yanick.witschi@terminal42.ch>
So if there is no |
Nothing Contao has to worry about. It's just different in Contao 5 vs Contao 4.13 because in 4.13 this check happened on |
$upload['tmp_name']
is set before using it
Thank you @qzminski. |
We use the terminal42/contao-fineuploader extension, which provides the files as string values. The Contao form will try to cleanup the temporary files on error, which will result in a TypeError here:
/cc @Toflar