[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] com web/doc-editor: Use name instead of login for Github account ; Better encode =?UTF-8?Q
From:       Yannick Torres <yannick () php ! net>
Date:       2014-07-30 18:15:24
Message-ID: php-mail-28dbedf2850c0242743ff563e5c8e9c72120302904 () git ! php ! net
[Download RAW message or body]

Commit:    daa17ee788ced6256c9b2522865d445944172048
Author:    Yannick Torrès <yannick.torres@gmail.com>         Wed, 30 Jul 2014 \
                20:15:24 +0200
Parents:   52259c132a6912fafda475aec31b698f21d99f47
Branches:  master

Link:       http://git.php.net/?p=web/doc-editor.git;a=commitdiff;h=daa17ee788ced6256c9b2522865d445944172048


Log:
Use name instead of login for Github account ; Better encode display_name return by \
Stackoverflow oauth

Changed paths:
  M  index.php


Diff:
diff --git a/index.php b/index.php
index afecd3b..fb476cc 100755
--- a/index.php
+++ b/index.php
@@ -151,7 +151,7 @@ if (!isset($_SESSION['userID']))
         $jsVar .= "
             auth.service   = \"".$_SESSION['oauth']['identService']."\",
             auth.serviceID = \"".$user->id."\", 
-            auth.login     = \"".$user->login."\", 
+            auth.login     = \"".$user->name."\", 
             auth.email     = \"".$user->email."\";
         
         ";
@@ -180,7 +180,7 @@ if (!isset($_SESSION['userID']))
         
             auth.service   = \"".$_SESSION['oauth']['identService']."\",
             auth.serviceID = \"".$user->items[0]->user_id."\", 
-            auth.login     = \"".$user->items[0]->display_name."\", 
+            auth.login     = \
\"".utf8_encode(html_entity_decode($user->items[0]->display_name))."\",   auth.email  \
= \"\";  
         ";


--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic