httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michele Waldman" <mmwald...@nyc.rr.com>
Subject RE: Making mod_auth_digest mysql
Date Thu, 12 Feb 2009 19:25:46 GMT
RewriteCond ${REMOTE_USER} . does not seem to work when the REMOTE_USER is
not defined.  The statement evaluates to true.

I plan of writing -e directive.

Michele

-----Original Message-----
From: Bob Ionescu [mailto:bobsiegen@googlemail.com] 
Sent: Monday, February 09, 2009 8:34 AM
To: modules-dev@httpd.apache.org
Subject: Re: Making mod_auth_digest mysql

2009/2/8 Michele Waldman <mmwaldman@nyc.rr.com>:
> But, I have to know how does
>
> RewriteCond ${REMOTE_USER} .
>
> Is the . for any character?  Why does it evaluate correctly when undefined
> and !="" doesn't?

. is one "any character", yes. ="" is empty (equiv. to the regEx ^$).
If you negate the meaning with an exclamation mark, !="", it stands
for "is not empty". If '.' evaluates, there's at least one character
returned for your search string. But ${REMOTE_USER} should read
%{REMOTE_USER} (% instead of $).

Bob


Mime
View raw message