[geeklog-cvs] geeklog: Allow LinkedIn OAuth usernames with spaces

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Apr 30 10:49:07 EDT 2011


changeset 8265:8e14d5dbf0a6
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/8e14d5dbf0a6
user: Dirk Haun <dirk at haun-online.de>
date: Sat Apr 30 16:19:33 2011 +0200
description:
Allow LinkedIn OAuth usernames with spaces

diffstat:

 system/classes/oauth/linkedin.auth.class.php |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 0813a4eb4c7c -r 8e14d5dbf0a6 system/classes/oauth/linkedin.auth.class.php
--- a/system/classes/oauth/linkedin.auth.class.php	Sat Apr 30 14:54:55 2011 +0200
+++ b/system/classes/oauth/linkedin.auth.class.php	Sat Apr 30 16:19:33 2011 +0200
@@ -50,7 +50,7 @@
 
     protected function _getCreateUserInfo($info) {
         $users = array(
-            'loginname'      => $info->{'first-name'} . $info->{'last-name'},
+            'loginname'      => $info->{'first-name'} . ' ' . $info->{'last-name'},
             'email'          => '',
             'passwd'         => '',
             'passwd2'        => '',
@@ -60,7 +60,6 @@
             'remoteservice'  => 'oauth.linkedin',
             'remotephoto'    => $info->{'picture-url'},
         );
-        $users['loginname'] = str_replace(' ', '', $users['loginname']);
         return $users;
     }
 



More information about the geeklog-cvs mailing list