Close Connection when there is no connection value.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13161 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2013-09-25 15:29:32 +00:00
parent 034a5c0288
commit f70ce644ce
1410 changed files with 7188 additions and 53541 deletions

View file

@ -88,6 +88,9 @@ class trackbackController extends trackback
$this->setMessage($lang->no_trackbacks);
}
$oSecurity = new Security($trackbackList);
$oSecurity->encodeHTML('..title', '..blog_name', '..excerpt');
$this->add('trackback_list', $trackbackList);
}
@ -150,12 +153,12 @@ class trackbackController extends trackback
Context::setRequestMethod("XMLRPC");
// When receiving the necessary variables yeokingeul Wanted
$obj = Context::gets('document_srl','blog_name','url','title','excerpt');
if(!$obj->document_srl || !$obj->url || !$obj->title || !$obj->excerpt) return $this->stop('fail');
if(!$obj->document_srl || !$obj->url || !$obj->title || !$obj->excerpt) return $this->stop('msg_invalid_request');
// Checks for correct trackback url
$given_key = Context::get('key');
$oTrackbackModel = &getModel('trackback');
$key = $oTrackbackModel->getTrackbackKey($obj->document_srl);
if($key != $given_key) return $this->stop('fail');
if($key != $given_key) return $this->stop('msg_invalid_key');
// Yeokingeul module out of the default settings
$module_srl = Context::get('module_srl');
$oModuleModel = &getModel('module');
@ -168,7 +171,7 @@ class trackbackController extends trackback
}
// If managers were banned does not Trackbacks
if($enable_trackback == 'N') return $this->stop('fail');
if($enable_trackback == 'N') return $this->stop('msg_disable_trackback');
return $this->insertTrackback($obj);
}