Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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

So bad rules such as "|hrrp://" 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
2  autoproxy2privoxy
@@ -8,7 +8,7 @@ re_start='^\|http(s?)://([^/\]+)([^\]*)' # |*bar
re_regex='^/(.*)/$' # /^https?:\/\/[^\/]+example\.com/ .*
re_negate='^@@([^@].*)' # @@|| (NO PROXY)
re_comment='^!(.*)' # !Foo Bar #Foo Bar (comment)
-re_keyword='^(https?://|/)?([^/\]+)([^\]*)' #*bar .**bar, :80/.*\.example\.com/foo.*bar (keyword filtering is HTTP only)
+re_keyword='^(https?://|/)?([^/|\][^/\]*)([^\]*)' #*bar .**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.