From: Eric Covener Date: Tue, 17 Jul 2012 14:29:34 +0000 (+0000) Subject: Merge r1362506 from https://svn.apache.org/repos/asf/httpd/httpd/trunk/: X-Git-Tag: 2.4.3~287 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b83f9e9a6b2eab017b649442181125ed4d39c57;p=apache Merge r1362506 from https://svn.apache.org/repos/asf/httpd/httpd/trunk/: Use integer operators when comparing to TIME_HOUR Reported by Florian in comment#124. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1362510 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_authz_core.xml b/docs/manual/mod/mod_authz_core.xml index 07f6262d05..84700a1a54 100644 --- a/docs/manual/mod/mod_authz_core.xml +++ b/docs/manual/mod/mod_authz_core.xml @@ -218,7 +218,7 @@ SetEnvIf User-Agent ^KnockKnock/2\.0 let_me_in decisions on arbitrary expressions.

- Require expr %{TIME_HOUR} >= 9 && %{TIME_HOUR} <= 17 + Require expr %{TIME_HOUR} -ge 9 && %{TIME_HOUR} -le 17

The syntax is described in the ap_expr diff --git a/docs/manual/mod/mod_ssl.xml b/docs/manual/mod/mod_ssl.xml index b488646513..db93b21038 100644 --- a/docs/manual/mod/mod_ssl.xml +++ b/docs/manual/mod/mod_ssl.xml @@ -1402,11 +1402,11 @@ request processing.

Example -SSLRequire ( %{SSL_CIPHER} !~ m/^(EXP|NULL)-/ \ - and %{SSL_CLIENT_S_DN_O} eq "Snake Oil, Ltd." \ - and %{SSL_CLIENT_S_DN_OU} in {"Staff", "CA", "Dev"} \ - and %{TIME_WDAY} >= 1 and %{TIME_WDAY} <= 5 \ - and %{TIME_HOUR} >= 8 and %{TIME_HOUR} <= 20 ) \ +SSLRequire ( %{SSL_CIPHER} !~ m/^(EXP|NULL)-/ \ + and %{SSL_CLIENT_S_DN_O} eq "Snake Oil, Ltd." \ + and %{SSL_CLIENT_S_DN_OU} in {"Staff", "CA", "Dev"} \ + and %{TIME_WDAY} -ge 1 and %{TIME_WDAY} -le 5 \ + and %{TIME_HOUR} -ge 8 and %{TIME_HOUR} -le 20 ) \ or %{REMOTE_ADDR} =~ m/^192\.76\.162\.[0-9]+$/