Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] get_bang_url: handle ambiguous !!bangs without error #740

Merged
merged 3 commits into from
Jan 12, 2022

Commits on Jan 11, 2022

  1. [fix] get_bang_url: handle ambiguous !!bangs without error

    An ambiguous bang like `!!d` raises an exception in function get_bang_url().  A
    bang is only unique when the bang_definition from get_bang_definition_and_ac() is
    a string / for a ambiguous bang the returned bang_definition is a dictionary.
    
    Reported-by: user prg at #searxng:matrix.org on 2022/01/11
    Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
    return42 committed Jan 11, 2022
    Configuration menu
    Copy the full SHA
    6d7e86e View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2022

  1. [fix] external bangs: don't overwrite Bangs in data trie

    Bangs with a `*` suffix (e.g. `!!d*`) overwrite Bangs with the same
    prefix (e.g. `!!d`) [1].  This can be avoid when a non printable character is
    used to tag a LEAF_KEY.
    
    [1] searxng#740 (comment)
    
    Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
    return42 committed Jan 12, 2022
    Configuration menu
    Copy the full SHA
    7cdd314 View commit details
    Browse the repository at this point in the history
  2. [upd] searx/data/external_bangs.json

    Updated external bangs by::
    
        ./manage pyenv.cmd ./searxng_extra/update/update_external_bangs.py
    
    Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
    return42 committed Jan 12, 2022
    Configuration menu
    Copy the full SHA
    a7c3c35 View commit details
    Browse the repository at this point in the history