1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 09:12:41 +01:00

Recommend "B" flag to Apache config

Summary: Split from D1921 via D1742. The "B" flag prevents excessive unescaping, especially of "+" into " ".

Test Plan: Added "B" to server config, var_dump()'d __path__ with "+" in it, got "+" instead of " ".

Reviewers: nh, vrana, btrahan

Reviewed By: nh

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D1922
This commit is contained in:
epriestley 2012-03-15 15:14:24 -07:00
parent d5c3d83a3f
commit 4421f18294

View file

@ -89,7 +89,7 @@ this:
RewriteEngine on RewriteEngine on
RewriteRule ^/rsrc/(.*) - [L,QSA] RewriteRule ^/rsrc/(.*) - [L,QSA]
RewriteRule ^/favicon.ico - [L,QSA] RewriteRule ^/favicon.ico - [L,QSA]
RewriteRule ^(.*)$ /index.php?__path__=$1 [L,QSA] RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA]
# This will use the config file you set up in the previous step. If you # This will use the config file you set up in the previous step. If you
# called it something other than 'myconfig', put that here. # called it something other than 'myconfig', put that here.