The following reply was made to PR mod_rewrite/5147; it has been noted by GNATS.
From: Jeremy Laidman <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: mod_rewrite/5147: Matching "on" with !="on" succeeds when it
should
fail
Date: Wed, 27 Oct 1999 16:15:09 +0100
"Ralf S. Engelschall" wrote:
> In article <[EMAIL PROTECTED]> you wrote:
>
> >>Synopsis: Matching "on" with !="on" succeeds when it should fail
> >
> > [...]
> > RewriteCond %{ENV:HTTPS} !="on"
>
> The correct syntax is:
>
> RewriteCond %{ENV:HTTPS} !=on
>
> i.e. without the quotation marks!
Fair enough, I guess. However:
a) isn't this counter-intuitive, especially as two quotes "" are used to
compare an empty string? and
b) how would I compare with a string with embedded spaces if quotes
aren't permitted?
--
Cheers
Jeremy