diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2016-07-18 22:27:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-18 22:27:17 +0200 |
| commit | aa09f963eb8220f866334779f61741da8926fcf2 (patch) | |
| tree | 37b9c3658374d6b8499be7713c8dc52c66e0be72 /searx/plugins/https_rewrite.py | |
| parent | 21c5fb1c4514444a7c4fdecd84874f2b7c367f38 (diff) | |
| parent | b3ab221b9808ba2b7b01d417210af9b9527e661c (diff) | |
Merge pull request #621 from stepshal/anomalous-backslash-in-string
Fix anomalous backslash in string
Diffstat (limited to 'searx/plugins/https_rewrite.py')
| -rw-r--r-- | searx/plugins/https_rewrite.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/plugins/https_rewrite.py b/searx/plugins/https_rewrite.py index 8c29520d2..8a9fcd4ad 100644 --- a/searx/plugins/https_rewrite.py +++ b/searx/plugins/https_rewrite.py @@ -87,7 +87,7 @@ def load_single_https_ruleset(rules_path): # convert host-rule to valid regex host = ruleset.attrib.get('host')\ - .replace('.', '\.').replace('*', '.*') + .replace('.', r'\.').replace('*', '.*') # append to host list hosts.append(host) |