cvs: pear-core /PEAR/PackageFile/v2 Validator.php

From: Date: Wed, 19 Oct 2005 00:39:00 +0000
Subject: cvs: pear-core /PEAR/PackageFile/v2 Validator.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-35695@lists.php.net to get a copy of this message
cellog Tue Oct 18 20:39:00 2005 EDT Modified files: /pear-core/PEAR/PackageFile/v2 Validator.php Log: fix installation of files like .this beginning with . http://cvs.php.net/diff.php/pear-core/PEAR/PackageFile/v2/Validator.php?r1=1.78&r2=1.79&ty=u Index: pear-core/PEAR/PackageFile/v2/Validator.php diff -u pear-core/PEAR/PackageFile/v2/Validator.php:1.78 pear-core/PEAR/PackageFile/v2/Validator.php:1.79 --- pear-core/PEAR/PackageFile/v2/Validator.php:1.78 Tue Oct 11 12:54:15 2005 +++ pear-core/PEAR/PackageFile/v2/Validator.php Tue Oct 18 20:38:58 2005 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Validator.php,v 1.78 2005/10/11 16:54:15 cellog Exp $ +// $Id: Validator.php,v 1.79 2005/10/19 00:38:58 cellog Exp $ /** * Private validation class used by PEAR_PackageFile_v2 - do not use directly, its * sole purpose is to split up the PEAR/PackageFile/v2.php file to make it smaller @@ -1012,7 +1012,8 @@ foreach ($list['file'] as $i => $file) { if (isset($file['attribs']) && isset($file['attribs']['name']) && - $file['attribs']['name']{0} == '.') { + $file['attribs']['name']{0} == '.' && + $file['attribs']['name']{1} == '/') { // name is something like "./doc/whatever.txt" $this->_invalidFileName($file['attribs']['name']); } @@ -1317,8 +1318,8 @@ function _invalidFileName($file, $dir) { $this->_stack->push(__FUNCTION__, 'error', array( - 'file' => $file, 'dir' => $dir), - 'File "%file%" in directory "%dir%" cannot begin with "."'); + 'file' => $file), + 'File "%file%" cannot begin with "."'); } function _filelistCannotContainFile($filelist)

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