Ticket #633 (closed defect: fixed)

Opened 2 years ago

Last modified 3 months ago

regular expression example from boring manual does not work.

Reported by: anonymous Assigned to: jan
Priority: normal Milestone:
Component: core Version: 1.4.11
Severity: normal Keywords:
Cc: Blocking:
Need Feedback: 0

Description

seems like a regex in the boring manual does not work as advertized.

$HTTPreferer? !~ "(^|\.)domain.com" { ... }

if referer is "http://domain.com" code in brackets runs (incorrect behavior).

if referer is "http://beta.domain.com" code in brackets does does not run (correct behavior).

this regexp (of course) works as expected: $HTTPreferer? !~ "domain.com" { ... }

Attachments

Change History

04/25/2008 01:52:28 PM changed by stbuehler

  • status changed from new to closed.
  • resolution set to fixed.
  • blocking changed.
  • pending changed.

I can't find your example in the wiki, so i guess this was fixed.

(You need to match against "https?://(.+\.)?domain.com" if i got it right)


Add/Change #633 (regular expression example from boring manual does not work.)




Change Properties
Action