]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: Use google sitesearch for website search
authorCole Robinson <crobinso@redhat.com>
Tue, 2 Apr 2019 18:07:57 +0000 (14:07 -0400)
committerCole Robinson <crobinso@redhat.com>
Thu, 4 Apr 2019 22:45:06 +0000 (18:45 -0400)
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

Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
docs/page.xsl

index 4698e2789ec5a11b7b191daba77f21346c630a15..beb864f26b8709b9649bcac11eecefe020e61c0f 100644 (file)
             </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" enctype="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>