diff options
author | Diva Canto | 2010-04-22 08:47:47 -0700 |
---|---|---|
committer | Diva Canto | 2010-04-22 08:47:47 -0700 |
commit | e33209fe5bf2a520d9fcb7fb309d66c8d0000aab (patch) | |
tree | 81358ab187e9ec1e576f5df34ccde2c0698945db | |
parent | Renamed OpenSim.Server.exe to Robust.exe and corresponding .ini's and config. (diff) | |
download | opensim-SC_OLD-e33209fe5bf2a520d9fcb7fb309d66c8d0000aab.zip opensim-SC_OLD-e33209fe5bf2a520d9fcb7fb309d66c8d0000aab.tar.gz opensim-SC_OLD-e33209fe5bf2a520d9fcb7fb309d66c8d0000aab.tar.bz2 opensim-SC_OLD-e33209fe5bf2a520d9fcb7fb309d66c8d0000aab.tar.xz |
Sanitized parsing of floats (x, y, z location) for Culture.
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginService.cs | 6 |
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) |