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.
1 parent d8b44b8 commit 95955f0Copy full SHA for 95955f0
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