Home » PEAR » PEAR » Bug #3533
bug #31347 trips up file_exists() check in infoFromAny
Details
| Submitted | 2005-02-20 15:25 UTC |
|---|---|
| From | smith at backendmedia dot com |
| Assigned | cellog |
| Status | Closed |
| Package | PEAR |
| PHP Version | 4.3.10 |
| OS | windows |
| Roadmaps | (Not assigned) |
Comments
[2005-02-20 15:25 UTC] smith at backendmedia dot com
Description:
------------
Due to bug http://bugs.php.net/bug.php?id=31347 I couldnt run the PEAR_PackageFileManager
I solved the bug for me by adding a check that would prevent any string longer than 255 to be allowed as a file name.
in PEAR/Common.php
function infoFromAny($info)
{
if (is_string($info) && strlen($info) < 255 &&file_exists($info)) {