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

Better check for valid plugin names #9173

Merged
merged 1 commit into from Nov 6, 2015
Merged

Better check for valid plugin names #9173

merged 1 commit into from Nov 6, 2015

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Nov 5, 2015

fixes #9171

First I hesitated to make this change in plugin manager as well and not only in the plugin generator as I was afraid of breaking existing plugins. On the other side a plugin starting with a number or containing a - or . could not have worked before as it wouldn't be a valid plugin name.

If it is still too risky as there could be a plugin not defining a Plugin class then we can remove the check in Plugin\Manager again.

I also thought about forcing a capital letter first but this would actually break plugin names.

FYI: I already adjusted the check in Marketplace, will update the server soon and also check for developer.piwik.org

@tsteur tsteur added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Nov 5, 2015
@tsteur tsteur added this to the 2.15.1 milestone Nov 5, 2015
@mattab
Copy link
Member

mattab commented Nov 6, 2015

👍

mattab pushed a commit that referenced this pull request Nov 6, 2015
Better check for valid plugin names
@mattab mattab merged commit 0349728 into master Nov 6, 2015
mattab pushed a commit that referenced this pull request Nov 6, 2015
@mattab
Copy link
Member

mattab commented Nov 6, 2015

fyi: added note in developer changelog fe9cdef

@mattab mattab deleted the 9171 branch November 6, 2015 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants