ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 1303


Ignore:
Timestamp:
Dec 20, 2006, 12:35:39 AM (14 years ago)
Author:
takemaru
Message:
  • lib/include/XML/RPC/Server.php:
  • fixes linefeed codes following HTTP header
  • webapp_ext/modules/pc/do/o_login.php:
  • webapp_ext/modules/pc/page/h_home.php:
  • webapp_ext/modules/pc/page/o_login.php:
  • webapp_ext/modules/pc/templates/o_login.tpl:
  • webapp_ext/modules/pc/templates/h_home.tpl:
  • added for Authentication API
  • redirects to URL indicated by api_auth_url query when authenticated
Location:
OpenPNE/branches/takemaru/api_auth
Files:
8 added
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/takemaru/api_auth/lib/include/XML/RPC/Server.php

    r2 r1303  
    408408            header($header);
    409409        }
     410
     411        // NOTE: '\n' is duplicated at the end of HTTP Headers,
     412        // like \r\n\r\n\n . The bogus charactor is removed below.
     413        // But the function 'header' must be fixed, I think.
     414        $http_headers = ob_get_contents(); // get output buffer
     415        ob_end_clean(); // clear output buffer
     416        //$http_headers = preg_replace('/\r\n\r\n\n/', "\r\n", $http_headers);
     417        $http_headers = substr($http_headers, 0, strlen($http_headers)-1);
     418        print $http_headers;
    410419
    411420        print $this->server_payload;
Note: See TracChangeset for help on using the changeset viewer.