Minor: Update LLLoginService to handle explicitly set login locations that include decimal precision. Fractions might be introduced if setting the initial login location from a viewer splash screen with data from the DataSnapshot service. At present the fractions cause regex to fail when matching the login string causing an exception.
parent
d3b43a96fb
commit
b9f870fa73
|
@ -615,7 +615,7 @@ namespace OpenSim.Services.LLLoginService
|
||||||
// e.g. New Moon&135&46 New Moon@osgrid.org:8002&153&34
|
// e.g. New Moon&135&46 New Moon@osgrid.org:8002&153&34
|
||||||
where = "url";
|
where = "url";
|
||||||
GridRegion region = null;
|
GridRegion region = null;
|
||||||
Regex reURI = new Regex(@"^uri:(?<region>[^&]+)&(?<x>\d+)&(?<y>\d+)&(?<z>\d+)$");
|
Regex reURI = new Regex(@"^uri:(?<region>[^&]+)&(?<x>\d+[.]?\d*)&(?<y>\d+[.]?\d*)&(?<z>\d+[.]?\d*)$");
|
||||||
Match uriMatch = reURI.Match(startLocation);
|
Match uriMatch = reURI.Match(startLocation);
|
||||||
if (uriMatch == null)
|
if (uriMatch == null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue