Changeset 12284 for trunk/wp-trackback.php
- Timestamp:
- 11/26/2009 11:29:54 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-trackback.php
r12032 r12284 37 37 $request_array = 'HTTP_POST_VARS'; 38 38 39 if ( ! $_GET['tb_id'] ) {39 if ( !isset($_GET['tb_id']) || !$_GET['tb_id'] ) { 40 40 $tb_id = explode('/', $_SERVER['REQUEST_URI']); 41 41 $tb_id = intval( $tb_id[ count($tb_id) - 1 ] ); 42 42 } 43 43 44 $tb_url = $_POST['url'];45 $charset = $_POST['charset'];44 $tb_url = isset($_POST['url']) ? $_POST['url'] : ''; 45 $charset = isset($_POST['charset']) ? $_POST['charset'] : ''; 46 46 47 47 // These three are stripslashed here so that they can be properly escaped after mb_convert_encoding() 48 $title = stripslashes($_POST['title']);49 $excerpt = stripslashes($_POST['excerpt']);50 $blog_name = stripslashes($_POST['blog_name']);48 $title = isset($_POST['title']) ? stripslashes($_POST['title']) : ''; 49 $excerpt = isset($_POST['excerpt']) ? stripslashes($_POST['excerpt']) : ''; 50 $blog_name = isset($_POST['blog_name']) ? stripslashes($_POST['blog_name']) : ''; 51 51 52 52 if ($charset) … … 73 73 $tb_id = $posts[0]->ID; 74 74 75 if ( !i ntval( $tb_id ) )75 if ( !isset($tb_id) || !intval( $tb_id ) ) 76 76 trackback_response(1, 'I really need an ID for this to work.'); 77 77
Note: See TracChangeset
for help on using the changeset viewer.