Make WordPress Core

Changeset 172


Ignore:
Timestamp:
06/05/2003 07:57:26 PM (21 years ago)
Author:
saxmatt
Message:

$url to $tb_url fix from Dougal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2trackback.php

    r160 r172  
    3838    // trackback is done by a GET
    3939    $tb_id = $HTTP_GET_VARS['tb_id'];
    40     $url = $HTTP_GET_VARS['url'];
     40    $tb_url = $HTTP_GET_VARS['url'];
    4141    $title = $HTTP_GET_VARS['title'];
    4242    $excerpt = $HTTP_GET_VARS['excerpt'];
     
    4747    $tb_id = explode('/', $HTTP_SERVER_VARS['REQUEST_URI']);
    4848    $tb_id = $tb_id[count($tb_id)-1];
    49     $url = $HTTP_POST_VARS['url'];
     49    $tb_url = $HTTP_POST_VARS['url'];
    5050    $title = $HTTP_POST_VARS['title'];
    5151    $excerpt = $HTTP_POST_VARS['excerpt'];
     
    5353}
    5454
    55 if ((strlen(''.$tb_id)) && (empty($HTTP_GET_VARS['__mode'])) && (strlen(''.$url))) {
     55if ((strlen(''.$tb_id)) && (empty($HTTP_GET_VARS['__mode'])) && (strlen(''.$tb_url))) {
    5656
    5757    @header('Content-Type: text/xml');
     
    7171        die('Sorry, trackbacks are closed for this item.');
    7272
    73     $url = addslashes($url);
     73    $tb_url = addslashes($tb_url);
    7474    $title = strip_tags($title);
    7575    $title = (strlen($title) > 255) ? substr($title, 0, 252).'...' : $title;
     
    9898    $comment_author = $author;
    9999    $comment_author_email = $email;
    100     $comment_author_url = $url;
     100    $comment_author_url = $tb_url;
    101101
    102102    $author = addslashes($author);
    103103
    104     $query = "INSERT INTO $tablecomments VALUES ('0','$comment_post_ID','$author','$email','$url','$user_ip','$now','$comment','0')";
     104    $query = "INSERT INTO $tablecomments VALUES ('0','$comment_post_ID','$author','$email','$tb_url','$user_ip','$now','$comment','0')";
    105105    $result = $wpdb->query($query);
    106106    if (!$result) {
Note: See TracChangeset for help on using the changeset viewer.