mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 06:42:14 +09:00
블로그API 애드온에서 editPost 사용시 document_srl을 꼭 체크하도록 수정
글 수정 method 에서 document_srl 체크하도록 수정 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6832 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b91426b408
commit
130d47db30
3 changed files with 13 additions and 2 deletions
|
|
@ -285,8 +285,17 @@
|
|||
// 글 수정
|
||||
case 'metaWeblog.editPost' :
|
||||
$tmp_val = $params[0]->value->string->body;
|
||||
if(!$tmp_val) $tmp_val = $params[0]->value->i4->body;
|
||||
if(!$tmp_val) {
|
||||
$content = getXmlRpcFailure(1, 'no permission');
|
||||
break;
|
||||
}
|
||||
$tmp_arr = explode('/', $tmp_val);
|
||||
$document_srl = array_pop($tmp_arr);
|
||||
if(!$document_srl) {
|
||||
$content = getXmlRpcFailure(1, 'no permission');
|
||||
break;
|
||||
}
|
||||
|
||||
$oDocumentModel = &getModel('document');
|
||||
$oDocument = $oDocumentModel->getDocument($document_srl);
|
||||
|
|
|
|||
|
|
@ -299,9 +299,9 @@
|
|||
$lang->msg_ftp_connect_success = 'FTP 접속 및 인증에 성공하였습니다.';
|
||||
|
||||
// xml filter에서 사용되는 javascript용 alert msg
|
||||
$lang->filter->isnull = '%s의 값을 입력해주세요.';
|
||||
$lang->filter->isnull = '%s을 입력해주세요.';
|
||||
$lang->filter->outofrange = '%s의 글자 수를 맞추어 주세요.';
|
||||
$lang->filter->equalto = '%s의 값이 잘못 되었습니다.';
|
||||
$lang->filter->equalto = '%s이 잘못되었습니다.';
|
||||
$lang->filter->invalid_email = '%s의 형식이 잘못되었습니다. (예: xe@xpressengine.com)';
|
||||
$lang->filter->invalid_user_id = $lang->filter->invalid_userid = "%s의 형식이 잘못되었습니다.\\n영문, 숫자와 _로 만드실 수 있으며, 첫 글자는 영문이어야 합니다.";
|
||||
$lang->filter->invalid_homepage = '%s의 형식이 잘못되었습니다. (예: http://www.xpressengine.com)';
|
||||
|
|
|
|||
|
|
@ -239,6 +239,8 @@
|
|||
* @brief 문서 수정
|
||||
**/
|
||||
function updateDocument($source_obj, $obj) {
|
||||
if(!$source_obj->document_srl || !$obj->document_srl) return new Object(-1,'msg_invalied_request');
|
||||
|
||||
// trigger 호출 (before)
|
||||
$output = ModuleHandler::triggerCall('document.updateDocument', 'before', $obj);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue