mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Don't crash if uploading a zero size file https://sourceforge.net/p/webadmin/bugs/5481/
This commit is contained in:
@@ -84,7 +84,7 @@ while(1) {
|
||||
$last_time = $now;
|
||||
}
|
||||
|
||||
$pc = int(100 * $size / $totalsize) / 2;
|
||||
$pc = $totalsize ? int(100 * $size / $totalsize) / 2 : 100;
|
||||
next if (defined($lastpc) && $pc == $lastpc);
|
||||
print "<script>\n";
|
||||
print "document.forms[0].file.value = \"".
|
||||
|
||||
Reference in New Issue
Block a user