[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [torbutton/master] Switch DDG search on homepage from POST to GET



commit 2a174533acf8163be0996c56153067b001d253d0
Author: Peter Story <pstory@xxxxxxxxxxxxxx>
Date:   Mon Jan 11 13:56:54 2021 -0500

    Switch DDG search on homepage from POST to GET
    
    See tor-browser#40287
    
    Also, eliminate extra "b" parameter from the search form. The
    presence of "b" would reveal that the search was initiated from
    the landing page, rather than the urlbar.
---
 chrome/content/aboutTor/aboutTor.xhtml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/aboutTor/aboutTor.xhtml b/chrome/content/aboutTor/aboutTor.xhtml
index 25267fc3..450a72ff 100644
--- a/chrome/content/aboutTor/aboutTor.xhtml
+++ b/chrome/content/aboutTor/aboutTor.xhtml
@@ -70,12 +70,12 @@
     </div>
 
     <div class="searchbox hideIfTorOff"> <!-- begin form based search -->
-      <form action="&aboutTor.searchDDGPost.link;" method="post">
+      <form action="&aboutTor.searchDDGPost.link;" method="get">
         <div class="searchwrapper">
           <label class="searchlabel" for="search-text">&nbsp;</label>
           <input name="q" id="search-text" placeholder="&aboutTor.search.label;"
                  autocomplete="off" type="text"/>
-          <input name="b" id="search-button" value=""
+          <input id="search-button" value=""
                  title="&aboutTor.search.label;"
                  alt="&aboutTor.search.label;" type="submit"/>
         </div>



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits