From 503daa72398be40041cca54c5085d680668c0a19 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 22 Mar 2008 00:20:39 +0000 Subject: [PATCH] * (bug 6813) Don't break HTML validator when using trackbacks --- RELEASE-NOTES | 1 + includes/Title.php | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 95af539926..bd4e8e7ce2 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -122,6 +122,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * PHP 5.3 compatibility fix for wfRunHooks() called with no parameters * (bug 6447) Trackbacks now work with transactional tables, if enabled * (bug 6892, 7147) Trackback error handling, optional fields more robust +* (bug 6813) Don't break HTML validator when using trackbacks === API changes in 1.13 === diff --git a/includes/Title.php b/includes/Title.php index 10987a2fd3..c07d971f76 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2895,7 +2895,12 @@ class Title { $title = htmlspecialchars($this->getText()); $tburl = $this->trackbackURL(); - return " + // Autodiscovery RDF is placed in comments so HTML validator + // won't barf. This is a rather icky workaround, but seems + // frequently used by this kind of RDF thingy. + // + // Spec: http://www.sixapart.com/pronet/docs/trackback_spec + return ""; } /** -- 2.20.1