aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/bugs/Google_search_plugin_not_passing_query_over_HTTPS_when_HTTPS_enabled.mdwn4
-rw-r--r--templates/googleform.tmpl2
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/bugs/Google_search_plugin_not_passing_query_over_HTTPS_when_HTTPS_enabled.mdwn b/doc/bugs/Google_search_plugin_not_passing_query_over_HTTPS_when_HTTPS_enabled.mdwn
index 3f8fbccc2..f3c4373f7 100644
--- a/doc/bugs/Google_search_plugin_not_passing_query_over_HTTPS_when_HTTPS_enabled.mdwn
+++ b/doc/bugs/Google_search_plugin_not_passing_query_over_HTTPS_when_HTTPS_enabled.mdwn
@@ -5,3 +5,7 @@ http://source.ikiwiki.branchable.com/?p=source.git;a=blob;f=templates/googleform
to
<form method="get" action="//www.google.com/search" id="searchform">
+
+> I changed it to use https unconditionally - there seems little point
+> in doing Google searches in clear-text when Google supports https,
+> even on unencrypted wikis. [[done]] --[[smcv]]
diff --git a/templates/googleform.tmpl b/templates/googleform.tmpl
index 9468e062a..b1c3078fb 100644
--- a/templates/googleform.tmpl
+++ b/templates/googleform.tmpl
@@ -1,5 +1,5 @@
-<form method="get" action="http://www.google.com/search" id="searchform">
+<form method="get" action="https://www.google.com/search" id="searchform">
<div>
<input name="sitesearch" value="<TMPL_VAR URL>" type="hidden" />
<input name="q" value="" id="searchbox" size="16" maxlength="255" type="text"