mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Merge pull request #1866 from shivpkumar/master
make search on 404 page secure
This commit is contained in:
commit
aada592b5b
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@
|
|||
<div class="span10" style='padding-top: 20px'>
|
||||
<h2><%= t 'page_not_found.search_title' %></h2>
|
||||
<p>
|
||||
<form action='http://google.com' id='google-search' onsubmit="return google_button_clicked()">
|
||||
<form action='//google.com' id='google-search' onsubmit="return google_button_clicked()">
|
||||
<input type="text" id='user-query' value="<%= @slug %>">
|
||||
<input type='hidden' id='google-query' name="q">
|
||||
<button class="btn btn-primary"><%= t 'page_not_found.search_google' %></button>
|
||||
|
@ -40,4 +40,4 @@
|
|||
document.getElementById('google-query').value = 'site:<%= local_domain %> ' + searchValue;
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue