https://bugzilla.wikimedia.org/show_bug.cgi?id=19457
Summary: $openid seems to be an array
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: Normal
Component: OpenID
AssignedTo: [email protected]
ReportedBy: [email protected]
$openid = this->getUserUrl($user); assigns an array. strlen of an empty array
also returns something greater 0. so it should check, if the array is empty
then
possible solution:
Index: SpecialOpenIDServer.body.php
===================================================================
--- SpecialOpenIDServer.body.php (revision 52244)
+++ SpecialOpenIDServer.body.php (working copy)
@@ -235,7 +235,7 @@
$openid = $this->getUserUrl( $user );
- if ( isset( $openid ) && strlen( $openid ) > 0 ) {
+ if ( isset( $openid ) && strlen( $openid[0] ) > 0 ) {
wfDebug( "OpenID: Not one of our users; logs in with
OpenID.\n" );
return $request->answer( false, $this->serverUrl() );
}
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l