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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux