You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Jeremy Laidman <jl...@auug.org.au> on 1999/10/27 17:20:00 UTC

Re: mod_rewrite/5147: Matching "on" with !="on" succeeds when it should fail

The following reply was made to PR mod_rewrite/5147; it has been noted by GNATS.

From: Jeremy Laidman <jl...@auug.org.au>
To: rse@engelschall.com
Cc: apbugs@apache.org
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 <19...@hyperreal.org> 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