Convert tb_id to int.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-04-20 03:20:31 +00:00
parent 5786083f60
commit 07730d904d
1 changed files with 3 additions and 1 deletions

View File

@ -27,9 +27,11 @@ function trackback_response($error = 0, $error_message = '') {
// trackback is done by a POST
$request_array = 'HTTP_POST_VARS';
if (!$tb_id) {
if ( empty($_GET['tb_id']) ) {
$tb_id = explode('/', $_SERVER['REQUEST_URI']);
$tb_id = intval($tb_id[count($tb_id)-1]);
} else {
$tb_id = intval($_GET['tb_id']);
}
$tb_url = $_POST['url'];