[libvirt] [PATCH 1/3] docs: Use google sitesearch for website search

Ján Tomko jtomko at redhat.com
Thu Apr 4 14:35:34 UTC 2019


On Wed, Apr 03, 2019 at 06:26:49PM -0400, Cole Robinson wrote:
>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">

s/menctype/enctype/ ?

Jano

>+              <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
>
>--
>libvir-list mailing list
>libvir-list at redhat.com
>https://www.redhat.com/mailman/listinfo/libvir-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190404/a9d7aa48/attachment-0001.sig>


More information about the libvir-list mailing list