From: Brion Vibber Date: Sat, 21 Nov 2009 00:34:01 +0000 (-0800) Subject: Disable XHTML Content-Type negotiation... You've foiled our plans for the last time! X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=330ddd1d9bb75a571072116f8324983e4ec9cfa2;p=quix0rs-gnu-social.git Disable XHTML Content-Type negotiation... You've foiled our plans for the last time! XHTML mode breaks a lot of JS and has been causing trouble for Safari and Chrome, especially with the fancier new UI-side plugins like realtime and maps. --- diff --git a/lib/htmloutputter.php b/lib/htmloutputter.php index c2ec83c284..d267526c88 100644 --- a/lib/htmloutputter.php +++ b/lib/htmloutputter.php @@ -34,9 +34,8 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { require_once INSTALLDIR.'/lib/xmloutputter.php'; -define('PAGE_TYPE_PREFS', - 'text/html,application/xhtml+xml,'. - 'application/xml;q=0.3,text/xml;q=0.2'); +// Can include XHTML options but these are too fragile in practice. +define('PAGE_TYPE_PREFS', 'text/html'); /** * Low-level generator for HTML