Convert tb_id to int.

git-svn-id: https://develop.svn.wordpress.org/trunk@2555 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-04-20 03:20:31 +00:00
parent d1978523e8
commit debd8e0e5f
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'];