cvs: pear-core /PEAR/PackageFile v1.php

From: Date: Wed, 19 Oct 2005 00:43:10 +0000
Subject: cvs: pear-core /PEAR/PackageFile v1.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-35696@lists.php.net to get a copy of this message
cellog Tue Oct 18 20:43:10 2005 EDT Modified files: /pear-core/PEAR/PackageFile v1.php Log: fix installation of files like .this beginning with . http://cvs.php.net/diff.php/pear-core/PEAR/PackageFile/v1.php?r1=1.63&r2=1.64&ty=u Index: pear-core/PEAR/PackageFile/v1.php diff -u pear-core/PEAR/PackageFile/v1.php:1.63 pear-core/PEAR/PackageFile/v1.php:1.64 --- pear-core/PEAR/PackageFile/v1.php:1.63 Sun Oct 2 23:20:12 2005 +++ pear-core/PEAR/PackageFile/v1.php Tue Oct 18 20:43:10 2005 @@ -15,7 +15,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: v1.php,v 1.63 2005/10/03 03:20:12 cellog Exp $ + * @version CVS: $Id: v1.php,v 1.64 2005/10/19 00:43:10 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 1.4.0a1 */ @@ -1192,7 +1192,7 @@ $this->_validateError(PEAR_PACKAGEFILE_ERROR_INVALID_FILEROLE, array('file' => $file, 'role' => $fa['role'], 'roles' => PEAR_Common::getFileRoles())); } - if ($file{0} == '.') { + if ($file{0} == '.' && $file{1} == '/') { $this->_validateError(PEAR_PACKAGEFILE_ERROR_INVALID_FILENAME, array('file' => $file)); }

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