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 a45741d + 59c785b commit d15188bCopy full SHA for d15188b
lib/validator/sfValidatorSchema.class.php
@@ -110,7 +110,7 @@ protected function doClean($values)
110
$errorSchema = new sfValidatorErrorSchema($this);
111
112
// check that post_max_size has not been reached
113
- if (isset($_SERVER['CONTENT_LENGTH']) && (int) $_SERVER['CONTENT_LENGTH'] > $this->getBytes(ini_get('post_max_size')))
+ if (isset($_SERVER['CONTENT_LENGTH']) && (int) $_SERVER['CONTENT_LENGTH'] > $this->getBytes(ini_get('post_max_size')) && ini_get('post_max_size') != 0)
114
{
115
$errorSchema->addError(new sfValidatorError($this, 'post_max_size'));
116
0 commit comments