Skip to content

Commit 1e69361

Browse files
committed
La redirection vers duck duck go nécessite une permission explicite pour "sortir"
1 parent f93be5c commit 1e69361

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
# Search on an external and specialized website
12
class SearchController < ApplicationController
2-
33
def index
44
params.permit!
5-
redirect_to "https://duckduckgo.com/?#{params.slice(:q).to_query}+site%3Alinuxfr.org"
5+
redirect_to "https://duckduckgo.com/?#{params.slice(:q).to_query}+site%3Alinuxfr.org", allow_other_host: true
66
end
7-
87
end

0 commit comments

Comments
 (0)