We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d8b44b8 + 95955f0 commit 5465f1dCopy full SHA for 5465f1d
lib/validator/sfValidatorFile.class.php
@@ -320,16 +320,17 @@ protected function getMaxFilesize()
320
return PHP_INT_MAX;
321
}
322
323
+ $value = strtolower(substr($max, 0, -1));
324
switch (strtolower(substr($max, -1)))
325
{
326
case 'g':
- $max *= 1024;
327
+ $value *= 1024;
328
case 'm':
329
330
case 'k':
331
332
333
- return (integer) $max;
334
+ return (integer) $value;
335
336
0 commit comments