Opened 18 years ago
Closed 18 years ago
#7844 closed defect (bug) (fixed)
WP sends url-encoded text in pingback/trackback
| Reported by: | reinkim | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7 |
| Component: | General | Version: | 2.7 |
| Severity: | major | Keywords: | has-patch |
| Cc: | Focuses: |
Description
From [9012], WP sends trackback/pingback using urlencoded text.
[9012] introduces HTTP api to send trackback/pingback. But in this changeset, WP sends blog-title, uri and excerpt in url-encoded format.
So pinged/trackbacked blog displays some strangely formatted trackback like,
blog+title // title http%3A%2F%2Fexample.org%2F111 // uri blah+blah+blah+%23%21%40%23%24 // excerpt
This behavior is caused by passing arguments of HTTP api in urlencoded text. (wp-includes/comment.php:1312)
To fix this problem, I've patched current working version of trunk like following diff.
-
comment.php
1310 1310 $options = array(); 1311 1311 $options['timeout'] = 4; 1312 1312 $options['body'] = array( 1313 'title' => urlencode($title),1314 'url' => urlencode(get_permalink($ID)),1315 'blog_name' => urlencode(get_option('blogname')),1316 'excerpt' => urlencode($excerpt)1313 'title' => $title, 1314 'url' => get_permalink($ID), 1315 'blog_name' => get_option('blogname'), 1316 'excerpt' => $excerpt 1317 1317 );
Attachments (1)
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch for wp-includes/comments.php