[libvirt] [PATCH 1/3] docs: Use google sitesearch for website search
Cole Robinson
crobinso at redhat.com
Wed Apr 3 22:26:49 UTC 2019
The website search is perpetually broken, has had XSS issues in the
past, and I suspect when it's working it's not as fast or capable as
a simple google site:libvirt.org search
Replace the <form> implementation with one that sends the user to
google.com with 'site:libvirt.org' appended to the search string
Signed-off-by: Cole Robinson <crobinso at redhat.com>
---
docs/page.xsl | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/docs/page.xsl b/docs/page.xsl
index 4698e2789e..3d007f486c 100644
--- a/docs/page.xsl
+++ b/docs/page.xsl
@@ -155,11 +155,10 @@
</ul>
</div>
<div id="search">
- <form action="{$href_base}search.php" enctype="application/x-www-form-urlencoded" method="get">
- <div>
- <input name="query" type="text" size="12" value=""/>
- <input name="submit" type="submit" value="Go"/>
- </div>
+ <form action="https://www.google.com/search" menctype="application/x-www-form-urlencoded" method="get">
+ <input name="sitesearch" type="hidden" value="libvirt.org"/>
+ <input name="q" type="text" size="12" value=""/>
+ <input type="submit" value="Go"/>
</form>
</div>
</div>
--
2.21.0
More information about the libvir-list
mailing list