aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services
diff options
context:
space:
mode:
authorDiva Canto2010-04-22 08:47:47 -0700
committerDiva Canto2010-04-22 08:47:47 -0700
commite33209fe5bf2a520d9fcb7fb309d66c8d0000aab (patch)
tree81358ab187e9ec1e576f5df34ccde2c0698945db /OpenSim/Services
parentRenamed OpenSim.Server.exe to Robust.exe and corresponding .ini's and config. (diff)
downloadopensim-SC-e33209fe5bf2a520d9fcb7fb309d66c8d0000aab.zip
opensim-SC-e33209fe5bf2a520d9fcb7fb309d66c8d0000aab.tar.gz
opensim-SC-e33209fe5bf2a520d9fcb7fb309d66c8d0000aab.tar.bz2
opensim-SC-e33209fe5bf2a520d9fcb7fb309d66c8d0000aab.tar.xz
Sanitized parsing of floats (x, y, z location) for Culture.
Diffstat (limited to 'OpenSim/Services')
-rw-r--r--OpenSim/Services/LLLoginService/LLLoginService.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs
index 7b25274..c333b5c 100644
--- a/OpenSim/Services/LLLoginService/LLLoginService.cs
+++ b/OpenSim/Services/LLLoginService/LLLoginService.cs
@@ -405,9 +405,9 @@ namespace OpenSim.Services.LLLoginService
405 } 405 }
406 else 406 else
407 { 407 {
408 position = new Vector3(float.Parse(uriMatch.Groups["x"].Value), 408 position = new Vector3(float.Parse(uriMatch.Groups["x"].Value, Culture.NumberFormatInfo),
409 float.Parse(uriMatch.Groups["y"].Value), 409 float.Parse(uriMatch.Groups["y"].Value, Culture.NumberFormatInfo),
410 float.Parse(uriMatch.Groups["z"].Value)); 410 float.Parse(uriMatch.Groups["z"].Value, Culture.NumberFormatInfo));
411 411
412 string regionName = uriMatch.Groups["region"].ToString(); 412 string regionName = uriMatch.Groups["region"].ToString();
413 if (regionName != null) 413 if (regionName != null)