cvs: pear-core /PEAR ChannelFile.php
| From: | Greg Beaver | Date: | Wed, 15 Dec 2004 02:55:29 +0000 |
| Subject: | cvs: pear-core /PEAR ChannelFile.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-27412@lists.php.net to get a copy of this message | ||
cellog Tue Dec 14 21:55:29 2004 EDT
Modified files:
/pear-core/PEAR ChannelFile.php
Log:
add validation of localalias
http://cvs.php.net/diff.php/pear-core/PEAR/ChannelFile.php?r1=1.38&r2=1.39&ty=u
Index: pear-core/PEAR/ChannelFile.php
diff -u pear-core/PEAR/ChannelFile.php:1.38 pear-core/PEAR/ChannelFile.php:1.39
--- pear-core/PEAR/ChannelFile.php:1.38 Mon Dec 13 23:57:40 2004
+++ pear-core/PEAR/ChannelFile.php Tue Dec 14 21:55:25 2004
@@ -16,7 +16,7 @@
// | Authors: Gregory Beaver <cellog@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: ChannelFile.php,v 1.38 2004/12/14 04:57:40 cellog Exp $
+// $Id: ChannelFile.php,v 1.39 2004/12/15 02:55:25 cellog Exp $
require_once 'PEAR/Common.php';
@@ -628,6 +628,12 @@
array('tag' => 'suggestedalias', 'name'
=>$info['suggestedalias']));
}
}
+ if (isset($info['localalias'])) {
+ if (!$this->validChannelName($info['localalias'])) {
+ $this->_validateError(PEAR_CHANNELFILE_ERROR_INVALID_NAME,
+ array('tag' => 'localalias', 'name'
=>$info['localalias']));
+ }
+ }
if (isset($info['validatepackage'])) {
if (!isset($info['validatepackage']['_content'])) {
$this->_validateError(PEAR_CHANNELFILE_ERROR_NOVALIDATE_NAME);