From: Stefan Fritsch
Date: Mon, 6 Jun 2011 22:09:22 +0000 (+0000)
Subject: purge some useless uses of '.*'
X-Git-Tag: 2.3.13~71
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45066dfb1535ff3d09af93c6ee36300b7c04194a;p=thirdparty%2Fapache%2Fhttpd.git
purge some useless uses of '.*'
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1132802 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/mod/mod_setenvif.xml b/docs/manual/mod/mod_setenvif.xml
index adeb7173b6a..33a0fd4da6c 100644
--- a/docs/manual/mod/mod_setenvif.xml
+++ b/docs/manual/mod/mod_setenvif.xml
@@ -231,7 +231,7 @@ of
:
SetEnvIf OID("2.16.840.1.113730.1.13") "(.*)" NetscapeComment=$1
:
- SetEnvIf ^TS* ^[a-z].* HAVE_TS
+ SetEnvIf ^TS ^[a-z] HAVE_TS
The first three will set the environment variable
diff --git a/docs/manual/rewrite/access.xml b/docs/manual/rewrite/access.xml
index c6fe5aa3a92..fa4a21b88e8 100644
--- a/docs/manual/rewrite/access.xml
+++ b/docs/manual/rewrite/access.xml
@@ -282,7 +282,7 @@ RewriteRule ^ %{HTTP_REFERER} [R,L]
RewriteCond %{HTTP_REFERER} !=""
RewriteCond ${deflector:%{HTTP_REFERER}|NOT-FOUND} !=NOT-FOUND
-RewriteRule ^.* ${deflector:%{HTTP_REFERER}} [R,L]
+RewriteRule ^ ${deflector:%{HTTP_REFERER}} [R,L]
The map file lists redirection targets for each referer, or, if
diff --git a/docs/manual/rewrite/intro.xml b/docs/manual/rewrite/intro.xml
index b962fd79d5a..9f1c17ee3eb 100644
--- a/docs/manual/rewrite/intro.xml
+++ b/docs/manual/rewrite/intro.xml
@@ -186,7 +186,7 @@ the beginning of a query string).
A full filesystem path to a resource
-RewriteRule ^/games.* /usr/local/games/web
+RewriteRule ^/games /usr/local/games/web
This maps a request to an arbitrary location on your filesystem, much
like the Alias directive.
@@ -282,7 +282,7 @@ the word "go", you could use:
RewriteCond %{QUERY_STRING} hack
RewriteCond %{HTTP_COOKIE} !go
-RewriteRule .* - [F]
+RewriteRule . - [F]
Notice that the exclamation mark specifies a negative match, so the rule is only applied if the cookie does not contain "go".
diff --git a/docs/manual/rewrite/rewritemap.xml b/docs/manual/rewrite/rewritemap.xml
index 35899514df9..d5059521eb6 100644
--- a/docs/manual/rewrite/rewritemap.xml
+++ b/docs/manual/rewrite/rewritemap.xml
@@ -324,7 +324,7 @@ by many requests.
Redirect a URI to an all-lowercase version of itself
RewriteMap lc int:tolower
- RewriteRule (.*[A-Z]+.*) ${lc:$1} [R]
+ RewriteRule (.*?[A-Z]+.*) ${lc:$1} [R]
diff --git a/docs/manual/ssl/ssl_faq.xml b/docs/manual/ssl/ssl_faq.xml
index a94da977fb0..99530545933 100644
--- a/docs/manual/ssl/ssl_faq.xml
+++ b/docs/manual/ssl/ssl_faq.xml
@@ -676,7 +676,8 @@ Does this mean the username/password is being sent unencrypted?
Why do I get I/O errors when connecting via
-HTTPS to an Apache+mod_ssl server with Microsoft Internet Explorer (MSIE)?
+HTTPS to an Apache+mod_ssl server with older versions of Microsoft Internet
+Explorer (MSIE)?
The first reason is that the SSL implementation in some MSIE versions has
some subtle bugs related to the HTTP keep-alive facility and the SSL close
notify alerts on socket connection close. Additionally the interaction
@@ -686,7 +687,7 @@ HTTPS to an Apache+mod_ssl server with Microsoft Internet Explorer (MSIE)?
- SetEnvIf User-Agent ".*MSIE.*" \
+ SetEnvIf User-Agent "MSIE [2-5]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
diff --git a/docs/manual/ssl/ssl_howto.xml b/docs/manual/ssl/ssl_howto.xml
index 768aaa86ab3..6a214e231c7 100644
--- a/docs/manual/ssl/ssl_howto.xml
+++ b/docs/manual/ssl/ssl_howto.xml
@@ -260,7 +260,7 @@ SSLRequire %{SSL_CIPHER_USEKEYSIZE} >= 128
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^192\.168\.1\.[0-9]+$
RewriteCond %{HTTPS} !=on
-RewriteRule .* - [F]
+RewriteRule . - [F]
# Allow Network Access and/or Basic Auth
Satisfy any
diff --git a/docs/manual/vhosts/examples.xml b/docs/manual/vhosts/examples.xml
index 4a70b5a979f..0d96e98454a 100644
--- a/docs/manual/vhosts/examples.xml
+++ b/docs/manual/vhosts/examples.xml
@@ -562,7 +562,7 @@
# primary vhost
DocumentRoot /www/subdomain
RewriteEngine On
- RewriteRule ^/.* /www/subdomain/index.html
+ RewriteRule . /www/subdomain/index.html
# ...
</VirtualHost>