Weebalu / lightopenid

Automatically exported from code.google.com/p/lightopenid
0 stars 0 forks source link

LightOpenId constructor fails when trusted root URL is less than 8 chars #65

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Line 85 throws an error like:

Warning: strpos() [function.strpos]: Offset not contained in string in 
/opt/wordpress/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/third
party/OpenID/LightOpenID.php on line 85

Changing it to the following fixes the issue:

if(strlen($this->trustRoot >= 8) && ($host_end = strpos($this->trustRoot, '/', 
8)) !== false) {

Original issue reported on code.google.com by mark.saw...@gmail.com on 13 Apr 2013 at 5:41