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

Issue #2 - LMMVC should throw PageNotFoundException when a method is private, protected or static. #3

Merged
merged 1 commit into from
Jun 15, 2014

Conversation

ianaldrighetti
Copy link
Owner

This pull request resolves issue #2, as LMMVC was not checking the visibility of a method in the controller object. Now the getMethodObject method of Application will throw a PageNotFoundException when the method is not public or is static.

This issue wasn't really a security problem because the call_user_func_array function simply spat out an error saying the method was private/protected so couldn't be invoked.

…ception if the method isn't public or is a static method. Added tests to ensure this doesn't happen again.
@ianaldrighetti ianaldrighetti self-assigned this Jun 15, 2014
ianaldrighetti added a commit that referenced this pull request Jun 15, 2014
Issue #2 - LMMVC should throw PageNotFoundException when a method is private, protected or static.
@ianaldrighetti ianaldrighetti merged commit e54f937 into master Jun 15, 2014
@ianaldrighetti ianaldrighetti deleted the 1.0.1 branch June 15, 2014 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant