Skip to content

Commit

Permalink
Merge pull request #224 from wouterbulten/master
Browse files Browse the repository at this point in the history
Extend isFile with maximum path length check
  • Loading branch information
Albin Kerouanton authored Jul 3, 2017
2 parents 3ba15a0 + e0f04b8 commit fdab3a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Knp/Snappy/AbstractGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ protected function fileExists($filename)
*/
protected function isFile($filename)
{
return is_file($filename);
return strlen($filename) <= PHP_MAXPATHLEN && is_file($filename);
}

/**
Expand Down

0 comments on commit fdab3a5

Please sign in to comment.