From eb89133eb6ab2633d58d5f894721a17497b4d74a Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 27 Sep 2005 03:34:37 +0000 Subject: [PATCH] For apos in links. git-svn-id: http://svn.automattic.com/wordpress/trunk@2922 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 55ab90ccd..a38c25311 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -786,6 +786,7 @@ function trackback($trackback_url, $title, $excerpt, $ID) { */ @fclose($fs); + $tb_url = addslashes( $tb_url ); $wpdb->query("UPDATE $wpdb->posts SET pinged = CONCAT(pinged, '\n', '$tb_url') WHERE ID = '$ID'"); $wpdb->query("UPDATE $wpdb->posts SET to_ping = REPLACE(to_ping, '$tb_url', '') WHERE ID = '$ID'"); return $result;