Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

AutoProxy keyword match rule must not start w/ "|"

So bad rules such as "|hrrp://htl.li" will raise
an exception instead of being translated as a
keyword match rule.
  • Loading branch information...
commit e3020932823bf99851f6ffd63097b92152fc9920 1 parent a9cc3a6
@cckpg authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  autoproxy2privoxy
View
2  autoproxy2privoxy
@@ -8,7 +8,7 @@ re_start='^\|http(s?)://([^/\]+)([^\]*)' # |https://ssl.example.com/foo*bar
re_regex='^/(.*)/$' # /^https?:\/\/[^\/]+example\.com/ .*example.com
re_negate='^@@([^@].*)' # @@||example.com .example.com (NO PROXY)
re_comment='^!(.*)' # !Foo Bar #Foo Bar (comment)
-re_keyword='^(https?://|/)?([^/\]+)([^\]*)' # .example.com/foo*bar .*.example.com:80/foo.*bar, :80/.*\.example\.com/foo.*bar (keyword filtering is HTTP only)
+re_keyword='^(https?://|/)?([^/|\][^/\]*)([^\]*)' # .example.com/foo*bar .*.example.com:80/foo.*bar, :80/.*\.example\.com/foo.*bar (keyword filtering is HTTP only)
# Regular expression to shell expansion is lossy;
# this is the only regex used in practice, so far.
Please sign in to comment.
Something went wrong with that request. Please try again.