svn: /pear/pear-core/trunk/PEAR/Command/ Package.php
| From: | Helgi Þormar Þorbjörnsson | Date: | Sat, 11 Sep 2010 13:18:43 +0000 |
| Subject: | svn: /pear/pear-core/trunk/PEAR/Command/ Package.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9661@lists.php.net to get a copy of this message | ||
dufuz Sat, 11 Sep 2010 13:18:43 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=303272
Log:
Fixed Bug #17463 Regression: svntag [patch by doconnor]
Bug: http://pear.php.net/bugs/17463 (unknown)
Changed paths:
U pear/pear-core/trunk/PEAR/Command/Package.php
Modified: pear/pear-core/trunk/PEAR/Command/Package.php
===================================================================
--- pear/pear-core/trunk/PEAR/Command/Package.php 2010-09-11 06:06:43 UTC (rev 303271)
+++ pear/pear-core/trunk/PEAR/Command/Package.php 2010-09-11 13:18:43 UTC (rev 303272)
@@ -577,13 +577,13 @@
$url = substr($xml, $url_tag + 5, strpos($xml, '</url>', $url_tag + 5) -
($url_tag + 5));
$path = array();
- $path['from'] = substr($url, 0, strrpos($url, '/'));
- $path['base'] = substr($path['from'], 0,
strrpos($path['from'], '/') + 1);
+ $path['from'] = substr($url, 0, strrpos($url, DIRECTORY_SEPARATOR));
+ $path['base'] = substr($path['from'], 0,
strrpos($path['from'], DIRECTORY_SEPARATOR) + 1);
- // Figure out the local paths
- $pos = strpos($file, '/trunk/');
+ // Figure out the local paths - see http://pear.php.net/bugs/17463
+ $pos = strpos($file, DIRECTORY_SEPARATOR . 'trunk' . DIRECTORY_SEPARATOR);
if ($pos === false) {
- $pos = strpos($file, '/branches/');
+ $pos = strpos($file, DIRECTORY_SEPARATOR . 'branches' . DIRECTORY_SEPARATOR);
}
$path['local']['base'] = substr($file, 0, $pos + 1);