include the default search engine in the opensearchdescription url
authorfpunktk <git@fpunktk.de>
Thu, 28 May 2015 18:30:47 +0000 (20:30 +0200)
committerfpunktk <git@fpunktk.de>
Thu, 28 May 2015 18:30:47 +0000 (20:30 +0200)
opensearchdescription-consearch.xml.php

index f12eb443b156110b8ab0aba885b3e476674a6f6d..e4ee2b7d8984608ef17ccc9a52218704e32ed586 100644 (file)
@@ -4,6 +4,6 @@
 <Description>conveniently use different searchengines</Description>
 <Tags>consearch</Tags>
 <Contact>consearch @ f p u n k t k . de</Contact>
-<Url type="text/html" template="https://www.fpunktk.de/consearch/index.php#{searchTerms}" />
+<Url type="text/html" template="https://www.fpunktk.de/consearch/index.php<?php if ( isset($_GET['dse']) and preg_match('/^[0-9a-z]{1,5}$/', $_GET['dse']) === 1 ) { echo "?dse=" . $_GET['dse']; } ?>#{searchTerms}" />
 <Image height="16" width="16" type="image/png">https://www.fpunktk.de/consearch/consearch.png</Image>
 </OpenSearchDescription>