mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
트랙백 발송시 내용의 html태그를 없애고 240자로 줄여서 보냄. 받을때 blog_name이 누락되던 문제 해결
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1887 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
88bd5f049b
commit
bbaefe6b0f
1 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@
|
|||
function trackback() {
|
||||
Context::setRequestMethod("XMLRPC");
|
||||
|
||||
$obj = Context::gets('document_srl','url','title','excerpt');
|
||||
$obj = Context::gets('document_srl','blog_name','url','title','excerpt');
|
||||
|
||||
if(!$obj->document_srl || !$obj->url || !$obj->title || !$obj->excerpt) return $this->stop('fail');
|
||||
|
||||
|
|
@ -129,7 +129,7 @@
|
|||
$http = parse_url($trackback_url);
|
||||
$obj->blog_name = Context::getBrowserTitle();
|
||||
$obj->title = $document->title;
|
||||
$obj->excerpt = cut_str($document->content, 240);
|
||||
$obj->excerpt = cut_str(strip_tags($document->content), 240);
|
||||
$obj->url = sprintf("%s?document_srl=%d", Context::getRequestUri(), $document->document_srl);
|
||||
|
||||
// blog_name, title, excerpt, url의 문자열을 요청된 charset으로 변경
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue