mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 04:52:14 +09:00
#18416078 fix receive blogapi when useing vid
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6911 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7a557ee42f
commit
ad8fcbef4f
2 changed files with 2 additions and 14 deletions
|
|
@ -22,16 +22,6 @@
|
||||||
// act가 api가 아니면 그냥 리턴~
|
// act가 api가 아니면 그냥 리턴~
|
||||||
if($_REQUEST['act']!='api') return;
|
if($_REQUEST['act']!='api') return;
|
||||||
|
|
||||||
/**
|
|
||||||
* blogapi의 경우 GET argument와 XML Content가 같이 오기에 XE의 경우 XML Content가 오면 이것만 처리하기에
|
|
||||||
* GET argument중에 mid값을 강제 설정해야 모듈을 정상적으로 찾는다
|
|
||||||
**/
|
|
||||||
if($called_position == 'before_module_init') {
|
|
||||||
$mid = $_REQUEST['mid'];
|
|
||||||
Context::set('mid', $mid, true);
|
|
||||||
$this->mid = $mid;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 관련 func 파일 읽음
|
// 관련 func 파일 읽음
|
||||||
require_once('./addons/blogapi/blogapi.func.php');
|
require_once('./addons/blogapi/blogapi.func.php');
|
||||||
|
|
||||||
|
|
@ -88,7 +78,7 @@
|
||||||
switch($method_name) {
|
switch($method_name) {
|
||||||
// 블로그 정보
|
// 블로그 정보
|
||||||
case 'blogger.getUsersBlogs' :
|
case 'blogger.getUsersBlogs' :
|
||||||
$obj->url = Context::getRequestUri().$this->mid;
|
$obj->url = getFullSiteUrl('');
|
||||||
$obj->blogid = $this->mid;
|
$obj->blogid = $this->mid;
|
||||||
$obj->blogName = $this->module_info->browser_title;
|
$obj->blogName = $this->module_info->browser_title;
|
||||||
$blog_list = array($obj);
|
$blog_list = array($obj);
|
||||||
|
|
@ -277,7 +267,6 @@
|
||||||
$content = getXmlRpcResponse($document_srl);
|
$content = getXmlRpcResponse($document_srl);
|
||||||
}
|
}
|
||||||
FileHandler::removeDir($tmp_uploaded_path);
|
FileHandler::removeDir($tmp_uploaded_path);
|
||||||
debugPrint($content);
|
|
||||||
|
|
||||||
printContent($content);
|
printContent($content);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -647,11 +647,10 @@
|
||||||
* @brief GET/POST방식일 경우 처리
|
* @brief GET/POST방식일 경우 처리
|
||||||
**/
|
**/
|
||||||
function _setRequestArgument() {
|
function _setRequestArgument() {
|
||||||
if($this->_getRequestMethod() == 'XMLRPC' || $this->_getRequestMethod() == 'JSON') return;
|
|
||||||
if(!count($_REQUEST)) return;
|
if(!count($_REQUEST)) return;
|
||||||
|
|
||||||
foreach($_REQUEST as $key => $val) {
|
foreach($_REQUEST as $key => $val) {
|
||||||
if($val === "") continue;
|
if($val === "" || Context::get($key)) continue;
|
||||||
$val = $this->_filterRequestVar($key, $val);
|
$val = $this->_filterRequestVar($key, $val);
|
||||||
if($this->_getRequestMethod()=='GET'&&isset($_GET[$key])) $set_to_vars = true;
|
if($this->_getRequestMethod()=='GET'&&isset($_GET[$key])) $set_to_vars = true;
|
||||||
elseif($this->_getRequestMethod()=='POST'&&isset($_POST[$key])) $set_to_vars = true;
|
elseif($this->_getRequestMethod()=='POST'&&isset($_POST[$key])) $set_to_vars = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue