From 07730d904d2f3921d1d7fff7dd15a542084e575b Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 20 Apr 2005 03:20:31 +0000 Subject: [PATCH] Convert tb_id to int. git-svn-id: http://svn.automattic.com/wordpress/trunk@2555 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-trackback.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-trackback.php b/wp-trackback.php index d78eb1f87c..aa1c81d180 100644 --- a/wp-trackback.php +++ b/wp-trackback.php @@ -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'];