소스 검색

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,13 +344,8 @@ class Discoverer {
344 344
    $this->endpointUrl = $links['openid2.provider'];
345 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 350
    Logger::log('OpenID EP found. End point: %s, claimed id: %s, op local id: %s', $this->endpointUrl, $this->claimedId, $this->opLocalId);
356 351
   } else if (isset($links['openid.server'])) {

Loading…
취소
저장