inhosin / oauth-php

Automatically exported from code.google.com/p/oauth-php
MIT License
0 stars 0 forks source link

Invalid user_id check in OAuthStoreMySQL->getConsumer #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
Thank you!

This has been fixed in r64.

- Marc Worrell

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