cvs: pear /PEAR_PackageFileManager PackageFileManager.php

From: Date: Tue, 14 Oct 2003 23:50:27 +0000
Subject: cvs: pear /PEAR_PackageFileManager PackageFileManager.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-13610@lists.php.net to get a copy of this message
cellog Tue Oct 14 19:50:27 2003 EDT Modified files: /pear/PEAR_PackageFileManager PackageFileManager.php Log: fix potential bug if a path is passed in with no trailing / Index: pear/PEAR_PackageFileManager/PackageFileManager.php diff -u pear/PEAR_PackageFileManager/PackageFileManager.php:1.15 pear/PEAR_PackageFileManager/PackageFileManager.php:1.16 --- pear/PEAR_PackageFileManager/PackageFileManager.php:1.15 Tue Oct 14 19:39:01 2003 +++ pear/PEAR_PackageFileManager/PackageFileManager.php Tue Oct 14 19:50:27 2003 @@ -16,7 +16,7 @@ // | Web http://www.phpdoc.org | // | Mirror http://phpdocu.sourceforge.net/ | // +------------------------------------------------------------------------+ -// $Id: PackageFileManager.php,v 1.15 2003/10/14 23:39:01 cellog Exp $ +// $Id: PackageFileManager.php,v 1.16 2003/10/14 23:50:27 cellog Exp $ // /** @@ -446,6 +446,14 @@ realpath($options['packagedirectory'])); if ($options['packagedirectory']{strlen($options['packagedirectory']) - 1} != '/') { $options['packagedirectory'] .= '/'; + } + } + if (isset($options['pathtopackagefile'])) { + $options['pathtopackagefile'] = str_replace(DIRECTORY_SEPARATOR, + '/', + realpath($options['pathtopackagefile'])); + if ($options['pathtopackagefile']{strlen($options['pathtopackagefile']) - 1} != '/') { + $options['pathtopackagefile'] .= '/'; } } if (!isset($options['baseinstalldir'])) {

« previous php.pear.cvs (#13610) next »