Mailing List Archive

[Bug 65956] SetEnvIfExpr inconsistent from request to request
https://bz.apache.org/bugzilla/show_bug.cgi?id=65956

--- Comment #1 from Christophe JAILLET <christophe.jaillet@wanadoo.fr> ---
Hi,

I'm not a regex expert, but should:
([0-9+])
be
([0-9]+)

?

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 65956] SetEnvIfExpr inconsistent from request to request [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=65956

--- Comment #2 from mkpdev@gmail.com ---
(In reply to Christophe JAILLET from comment #1)
> Hi,
>
> I'm not a regex expert, but should:
> ([0-9+])
> be
> ([0-9]+)
>
> ?

Well that's awkward. You are completely correct and the corrected regex seems
to fix *my* problem.

I'd happily mark this INVALID and hide my embarrassment, but I think I may have
reported a real bug. With the regex I used (and figuring it's best I don't rely
on my eyes this time):

> $ perl -le '"Firefox/40" =~ m#Firefox/([0-9+])#; print "$1 -lt 31 = ", $1 < 31 ? "yes" : "no"'
> 4 -lt 31 = yes

So I was wrong in #0 that:
> Somehow it thinks 40 is less than 31?
That should read instead:
> Somehow it thinks 4 is not less than 31?

Please tell me I'm missing something here?

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org