fix opensearchdescription xml
authorFelix Kästner <git@fpunktk.de>
Tue, 13 Oct 2015 20:30:32 +0000 (22:30 +0200)
committerFelix Kästner <git@fpunktk.de>
Tue, 13 Oct 2015 20:30:32 +0000 (22:30 +0200)
index.php

index d0c2543a1559bbb43f22d1b8c536c30e584c6478..847dbcc818926086e4f1b3c4b600e71f01c6ee5d 100644 (file)
--- a/index.php
+++ b/index.php
@@ -17,6 +17,7 @@ if ( isset($_GET['dse']) and preg_match('/^[0-9a-z]{1,5}$/', $_GET['dse']) === 1
 }
 
 if ( isset($_GET['get']) and $_GET['get'] === "opensearchdescription" ) {
+    header('Content-Type: text/xml');
     echo '<?xml version="1.0" encoding="UTF-8"?>
 <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
 <ShortName>consearch';
@@ -27,7 +28,7 @@ if ( isset($_GET['get']) and $_GET['get'] === "opensearchdescription" ) {
 <Contact>consearch @ f p u n k t k . de</Contact>
 <Url type="text/html" template="https://www.fpunktk.de/consearch/index.php';
     if ( $dse ) { echo "?dse=$dse"; }
-    echo '#{searchTerms}" />
+    echo '#{searchTerms}"></Url>
 <Image height="16" width="16" type="image/png">https://www.fpunktk.de/consearch/consearch.png</Image>
 </OpenSearchDescription>';