httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 47186] New:首頁&uselang=en
Date Tue, 12 May 2009 21:19:57 GMT

           Product: Apache httpd-2
           Version: 2.2.11
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Documentation
needs to be corrected as follows, or else it will fail outside of ASCII.
-RewriteRule ^/(.*)$1 [L,R]
+RewriteRule ^/(.*)$1 [L,R,NE]
Otherwise the QUERY_STRING will get doubly escaped!:
$ set\&uselang=en
$ w3m -dump http://$1|head
Jump to: navigation, search...
$ w3m -dump http://www.$1|head
The requested page title was invalid, empty, or an incorrectly linked...
$ HEAD -PS http://$1|head -n 2
--> 200 OK
$ HEAD -PS http://www.$1|head -n 2
--> 301 Moved Permanently
--> 200 OK
(I will tell the MediaWiki people to return 404.)

The preceding is the situation on Dreamhost when one clicks their
"rewrite my URL without WWW" option on their control panel, and not the
product of junior programmer me. It also probably affects those who
chose their "Always add WWW" option.

So any of their hundreds of thousands of users are affected, the moment
any non ASCII is attempted... all presumably due to poor advice there in
the Apache manual, perhaps.

And the problem was not detected earlier because most of their users are
USA ASCII website making people, perhaps.

I will tell Dreamhost to have a look at this bug report.

However I would also like to note that on my home machine, I needed to change
-RewriteRule ^/(.*)$1 [L,R,NE]
+RewriteRule   (.*)$1 [L,R,NE]
during my experiments too.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message