From: SourceForge.net <no...@so...> - 2007-12-31 03:20:02
|
Actionsfile feedback item #1849153, was opened at 2007-12-11 22:55 Message generated for change (Comment added) made by sf-robot You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=460288&aid=1849153&group_id=11118 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: mgemet (mgemet) Assigned to: Fabian Keil (fabiankeil) Summary: Domain pattern globbing confusion Initial Comment: Hello all; The Privoxy Manual (3.0.6) states under Actions Files section 8.4.1 (the domain pattern) that the dot "." is used to unanchor the start or end of a pattern. Thus: .example. matches www.example.com; or "any domain that includes '.example.'" INCLUDING the dots. In other words, the dot "." is not a metacharacter, it's a literal dot. The ".example." above DOES NOT match "http://example.com" according to the Manual. Except it does. I have a problem understanding why the following does NOT work: I have a domain "http://algore.com/. When I try to pattern match as follows: "algore.com/...path pattern..." Notice NO dot before "algore", which should match because it's exactly what the domain is. But no joy. In the debug process, indeed it states it has "matched", and the subsequent "-block" rule has been enforced, but in practice it is not followed. Not until I rewrite as: ".algore.com/...path pattern..." does it work! Except as I understand the manual, ".algore..." SHOULDN'T work for "http://algore.com..." because the dot "." unanchors it and as the Manual states under sec. 8.4.1, should "match any domain that contains .example.." Not: "that contains example". Note the dots. So how am I to understand the dot globber? Is it a place-matcher, or a character-matcher or both, or neither? Help... A would-be Privoxy fanatic, Matthew mat...@mi... ---------------------------------------------------------------------- >Comment By: SourceForge Robot (sf-robot) Date: 2007-12-30 19:20 Message: Logged In: YES user_id=1312539 Originator: NO This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 7 days (the time period specified by the administrator of this Tracker). ---------------------------------------------------------------------- Comment By: Fabian Keil (fabiankeil) Date: 2007-12-23 08:27 Message: Logged In: YES user_id=875547 Originator: NO Thanks for the report, the manual is incorrect and .example.com/ should match any domains with first-level domain "com" and second-level domain "example". For example it should match: www.example.com example.com and foo.bar.baz.example.com but not: another-example.com because here the second-level domain isn't "example". The dot in domain patterns is used as a domain boundary marker and the dots in the real domain are interpreted as domain boundaries as well, not as real characters. Can you post your exact pattern and the URL that should be matched but isn't? Provided the path pattern matches, the missing dot shouldn't prevent the match in your example. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=460288&aid=1849153&group_id=11118 |