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

Invalid user_id check in OAuthStoreMySQL->getConsumer #7

Closed
GoogleCodeExporter opened this issue Mar 21, 2015 · 1 comment
Closed

Comments

@GoogleCodeExporter
Copy link

in OAuthStoreMySQL->getConsumer() function before the return statement
there is a user_id check:

http://code.google.com/p/oauth-php/source/browse/trunk/library/store/OAuthStoreM
ySQL.php#1122
if (!$user_is_admin && !empty($r['user_id']) && $r['user_id'] != $user_id)

the $r doesn't exist and i believe it's a typo for $c. 
It should be:
if (!$user_is_admin && !empty($c['user_id']) && $c['user_id'] != $user_id)


Original issue reported on code.google.com by martin.j...@gmail.com on 23 Mar 2009 at 1:36

@GoogleCodeExporter
Copy link
Author

Thank you!

This has been fixed in r64.

- Marc Worrell

Original comment by ma...@pobox.com on 16 Aug 2009 at 7:37

  • Changed state: Fixed

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

No branches or pull requests

1 participant