浏览代码

Fix v2 html parsing with no op local id

tags/0.6
Chris Smith 14 年前
父节点
当前提交
903272ac79
共有 1 个文件被更改,包括 2 次插入7 次删除
  1. 2
    7
      discoverer.inc.php

+ 2
- 7
discoverer.inc.php 查看文件

344
    $this->endpointUrl = $links['openid2.provider'];
344
    $this->endpointUrl = $links['openid2.provider'];
345
    //$this->servers[] = new Server($this->server, 2);
345
    //$this->servers[] = new Server($this->server, 2);
346
 
346
 
347
-   if (isset($links['openid2.local_id'])) {
348
-    $this->claimedId = $this->userSuppliedId;
349
-    $this->opLocalId = $links['openid2.local_id'];
350
-   } else {
351
-    $this->claimedId = self::ID_SELECT_URL;
352
-    $this->opLocalId = self::ID_SELECT_URL;
353
-   }
347
+   $this->claimedId = $this->userSuppliedId;
348
+   $this->opLocalId = isset($links['openid2.local_id']) ? $links['openid2.local_id'] : $this->claimedId;
354
 
349
 
355
    Logger::log('OpenID EP found. End point: %s, claimed id: %s, op local id: %s', $this->endpointUrl, $this->claimedId, $this->opLocalId);
350
    Logger::log('OpenID EP found. End point: %s, claimed id: %s, op local id: %s', $this->endpointUrl, $this->claimedId, $this->opLocalId);
356
   } else if (isset($links['openid.server'])) {
351
   } else if (isset($links['openid.server'])) {

正在加载...
取消
保存