Changeset 172
- Timestamp:
- 06/05/2003 07:57:26 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2trackback.php
r160 r172 38 38 // trackback is done by a GET 39 39 $tb_id = $HTTP_GET_VARS['tb_id']; 40 $ url = $HTTP_GET_VARS['url'];40 $tb_url = $HTTP_GET_VARS['url']; 41 41 $title = $HTTP_GET_VARS['title']; 42 42 $excerpt = $HTTP_GET_VARS['excerpt']; … … 47 47 $tb_id = explode('/', $HTTP_SERVER_VARS['REQUEST_URI']); 48 48 $tb_id = $tb_id[count($tb_id)-1]; 49 $ url = $HTTP_POST_VARS['url'];49 $tb_url = $HTTP_POST_VARS['url']; 50 50 $title = $HTTP_POST_VARS['title']; 51 51 $excerpt = $HTTP_POST_VARS['excerpt']; … … 53 53 } 54 54 55 if ((strlen(''.$tb_id)) && (empty($HTTP_GET_VARS['__mode'])) && (strlen(''.$ url))) {55 if ((strlen(''.$tb_id)) && (empty($HTTP_GET_VARS['__mode'])) && (strlen(''.$tb_url))) { 56 56 57 57 @header('Content-Type: text/xml'); … … 71 71 die('Sorry, trackbacks are closed for this item.'); 72 72 73 $ url = addslashes($url);73 $tb_url = addslashes($tb_url); 74 74 $title = strip_tags($title); 75 75 $title = (strlen($title) > 255) ? substr($title, 0, 252).'...' : $title; … … 98 98 $comment_author = $author; 99 99 $comment_author_email = $email; 100 $comment_author_url = $ url;100 $comment_author_url = $tb_url; 101 101 102 102 $author = addslashes($author); 103 103 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')"; 105 105 $result = $wpdb->query($query); 106 106 if (!$result) {
Note: See TracChangeset
for help on using the changeset viewer.