Commit dc65be5f authored by Gábor Hojtsy's avatar Gábor Hojtsy

Issue #307636 follwup by quicksketch: fix to make image_get_info() on IIS work...

Issue #307636 follwup by quicksketch: fix to make image_get_info() on IIS work better had a variable name typo before; now fix that
parent 43239c96
......@@ -113,7 +113,9 @@ function image_toolkit_invoke($method, $params = array()) {
* 'file_size' - File size in bytes.
*/
function image_get_info($file) {
if (!is_file($file) && !is_uploaded_file($filepath)) {
// Proceed no further if this file doesn't exist. Some web servers (IIS) may
// not pass is_file() for newly uploaded files, so we need two checks here.
if (!is_file($file) && !is_uploaded_file($file)) {
return FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment