CRM-19826 - CRM_Extension_System - Fix extra slash in `vendor` URLs
authorTim Otten <totten@civicrm.org>
Tue, 20 Dec 2016 22:05:31 +0000 (14:05 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 3 Jan 2017 09:07:12 +0000 (01:07 -0800)
commit945ccd6c94f959d10cf2a15394d2d5511c8bfc24
tree65fa9fe06ea54bd86abd4a31949a996e1b3bae4b
parent041022cc7fb722c21e33f2fa244844a96538d80e
CRM-19826 - CRM_Extension_System - Fix extra slash in `vendor` URLs

If you install an extension under `$cmsRoot/vendor/org.example.foo`, the
resulting URL contains an extraneous `/` (eg
`http://example.org//vendor/org.example.foo`).  (In Windows, I suspect it's
even worse because it uses DIRECTORY_SEPARATOR in the URl -- eg
`http://example.org/\vendor/org.example.foo`.)

This patch checks for and removes the extraneous slash -- and always
constructs the URL with the appropriate delimiter (`/`).

Problem observed in `dmaster`.
CRM/Extension/System.php