]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/htmloutputter.php
Qvitter API changes (thanks hannes2peer)
[quix0rs-gnu-social.git] / lib / htmloutputter.php
index e358b2be5d57b70207fcf038bba579515a479f28..578518ea411a7ae219500d3439e4fd1835379276 100644 (file)
@@ -111,14 +111,14 @@ class HTMLOutputter extends XMLOutputter
        // Output anti-framing headers to prevent clickjacking (respected by newer
         // browsers).
        if (common_config('javascript', 'bustframes')) {
-            header('X-XSS-Protection 1; mode=block'); // detect XSS Reflection attacks
+            header('X-XSS-Protection: 1; mode=block'); // detect XSS Reflection attacks
             header('X-Frame-Options: SAMEORIGIN'); // no rendering if origin mismatch
         }
 
         $this->extraHeaders();
         if (preg_match("/.*\/.*xml/", $type)) {
             // Required for XML documents
-            $this->xw->startDocument('1.0', 'UTF-8');
+            $this->startXML();
         }
         $this->xw->writeDTD('html',
                             '-//W3C//DTD XHTML 1.0 Strict//EN',