Skip to content

Commit b368856

Browse files
committed
Fix usage of octet in recent patch
1 parent 5465f1d commit b368856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/validator/sfValidatorFile.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ protected function getMaxFilesize()
320320
return PHP_INT_MAX;
321321
}
322322

323-
$value = strtolower(substr($max, 0, -1));
323+
$value = (int) $max;
324324
switch (strtolower(substr($max, -1)))
325325
{
326326
case 'g':

0 commit comments

Comments
 (0)