diff options
author | Diva Canto | 2011-02-16 08:18:49 -0800 |
---|---|---|
committer | Diva Canto | 2011-02-16 08:18:49 -0800 |
commit | fc84225038a44e114fe58e4b789b746c9b7a8338 (patch) | |
tree | a918345292e8b68fbf265938cdea3a2398d7abb7 /OpenSim/Framework/Servers | |
parent | Change the QUERYACCESS method to eliminate spurious access denied messages (diff) | |
download | opensim-SC-fc84225038a44e114fe58e4b789b746c9b7a8338.zip opensim-SC-fc84225038a44e114fe58e4b789b746c9b7a8338.tar.gz opensim-SC-fc84225038a44e114fe58e4b789b746c9b7a8338.tar.bz2 opensim-SC-fc84225038a44e114fe58e4b789b746c9b7a8338.tar.xz |
XFF capitalization strikes again -- this time in the XMLRPC method. mantis #5386
Diffstat (limited to 'OpenSim/Framework/Servers')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs index 4c35132..1d05b02 100644 --- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | |||
@@ -785,7 +785,19 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
785 | if (methodWasFound) | 785 | if (methodWasFound) |
786 | { | 786 | { |
787 | xmlRprcRequest.Params.Add(request.Url); // Param[2] | 787 | xmlRprcRequest.Params.Add(request.Url); // Param[2] |
788 | xmlRprcRequest.Params.Add(request.Headers.Get("X-Forwarded-For")); // Param[3] | 788 | |
789 | string xff = "X-Forwarded-For"; | ||
790 | string xfflower = xff.ToLower(); | ||
791 | foreach (string s in request.Headers.AllKeys) | ||
792 | { | ||
793 | if (s != null && s.Equals(xfflower)) | ||
794 | { | ||
795 | xff = xfflower; | ||
796 | break; | ||
797 | } | ||
798 | } | ||
799 | xmlRprcRequest.Params.Add(request.Headers.Get(xff)); // Param[3] | ||
800 | |||
789 | 801 | ||
790 | try | 802 | try |
791 | { | 803 | { |