diff options
| author | Ivan Gabaldon <igabaldon@inetol.net> | 2025-10-24 11:28:07 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-10-24 12:32:43 +0200 |
| commit | 8dacbbbb157359447a07ea4562ab6447dacb5f06 (patch) | |
| tree | 094ae416687a1e5e6878130fe3c4f7b595c62bbf /searx/templates/simple/elements | |
| parent | b770a46e1f8f339b2bb2a53faba80e9c9a5b1611 (diff) | |
[fix] client/simple: insecure ctx clipboard copy
Uses the deprecated [`execCommand()`](https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand)
to copy content to clipboard if accessing the instance through HTTP, this method
isn't going away soon.
Closes https://github.com/searxng/searxng/issues/5359
Diffstat (limited to 'searx/templates/simple/elements')
| -rw-r--r-- | searx/templates/simple/elements/search_url.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/templates/simple/elements/search_url.html b/searx/templates/simple/elements/search_url.html index a585ff70b..8f52f2f9a 100644 --- a/searx/templates/simple/elements/search_url.html +++ b/searx/templates/simple/elements/search_url.html @@ -1,7 +1,7 @@ <div id="search_url" role="complementary" aria-labelledby="search_url-title"> <details class="sidebar-collapsible"> <summary class="title" id="search_url-title">{{ _('Search URL') }}</summary> - <button id="copy_url" type="submit" data-copied-text="{{ _('Copied') }}">{{ _('Copy') }}</button> + <button id="copy_url" type="button" class="button" data-copied-text="{{ _('Copied') }}">{{ _('Copy') }}</button> <div class="selectable_url"> <pre>{{ url_for('search', _external=True) }}?q={{ q|urlencode }}&language={{ current_language }}&time_range={{ time_range }}&safesearch={{ safesearch }} {%- if pageno > 1 -%} |