This is an automated email from the ASF dual-hosted git repository. matthiasblaesing pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans-tools.git
The following commit(s) were added to refs/heads/master by this push: new 1c490ba [NETBEANS-5039] Remove duplicate '/' from the download URL new eb4f254 Merge pull request #39 from junichi11/netbeans-5039 1c490ba is described below commit 1c490bafa8adb88485394c6d835d51ab6b82bcc9 Author: junichi11 <junichi0...@gmail.com> AuthorDate: Thu Nov 19 14:11:30 2020 +0900 [NETBEANS-5039] Remove duplicate '/' from the download URL --- pp3/module/Application/src/Application/Pp/Catalog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pp3/module/Application/src/Application/Pp/Catalog.php b/pp3/module/Application/src/Application/Pp/Catalog.php index 0c0f216..0d34b48 100644 --- a/pp3/module/Application/src/Application/Pp/Catalog.php +++ b/pp3/module/Application/src/Application/Pp/Catalog.php @@ -177,7 +177,7 @@ class Catalog { $licenseSource = $moduleSource[0]->getElementsByTagName(self::LICENSE_ELEMENT); $moduleElement = $xml->createElement(self::MODULE_ELEMENT); - $moduleElement->setAttribute(self::MODULE_ATTR_distribution, $this->_downloadPath.'/'.$item->getId().'/'.$item->getArtifactFilename()); + $moduleElement->setAttribute(self::MODULE_ATTR_distribution, rtrim($this->_downloadPath, '/').'/'.$item->getId().'/'.$item->getArtifactFilename()); $moduleElement->setAttribute(self::MODULE_ATTR_downloadsize, intval($item->getArtifactSize())); foreach(self::MODULE_ATTRS as $attr) { if($moduleSource[0]->hasAttribute($attr)) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists