Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRM-19826 - CRM_Extension_System - Fix extra slash in vendor URLs #9618

Merged
merged 1 commit into from Jan 4, 2017

Conversation

totten
Copy link
Member

@totten totten commented Jan 3, 2017

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.


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`.
@totten
Copy link
Member Author

totten commented Jan 4, 2017

jenkins, test this please

@monishdeb
Copy link
Member

Tested after installing extension on vendor directory, working fine.
Also recorded the change in log before/after applying the patch.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants