diff options
author | Diva Canto | 2014-04-07 19:41:25 -0700 |
---|---|---|
committer | Diva Canto | 2014-04-07 19:41:25 -0700 |
commit | c0fd09b4453f6fef7b59dbcd820e33018df63a32 (patch) | |
tree | 70de852dd1736aed79ea27ad0157bcb99403e1ca /OpenSim/Services | |
parent | When sending QueryAccess to a region, also send the user's Home URI (diff) | |
download | opensim-SC-c0fd09b4453f6fef7b59dbcd820e33018df63a32.zip opensim-SC-c0fd09b4453f6fef7b59dbcd820e33018df63a32.tar.gz opensim-SC-c0fd09b4453f6fef7b59dbcd820e33018df63a32.tar.bz2 opensim-SC-c0fd09b4453f6fef7b59dbcd820e33018df63a32.tar.xz |
Avoid calling HELO service on malformed URLs. This is in response to an exception reported by danbanner.
Diffstat (limited to 'OpenSim/Services')
-rw-r--r-- | OpenSim/Services/Connectors/Hypergrid/HeloServicesConnector.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Services/Connectors/Hypergrid/HeloServicesConnector.cs b/OpenSim/Services/Connectors/Hypergrid/HeloServicesConnector.cs index 5004d99..d04cc22 100644 --- a/OpenSim/Services/Connectors/Hypergrid/HeloServicesConnector.cs +++ b/OpenSim/Services/Connectors/Hypergrid/HeloServicesConnector.cs | |||
@@ -75,6 +75,12 @@ namespace OpenSim.Services.Connectors | |||
75 | 75 | ||
76 | public virtual string Helo() | 76 | public virtual string Helo() |
77 | { | 77 | { |
78 | if (String.IsNullOrEmpty(m_ServerURI)) | ||
79 | { | ||
80 | m_log.WarnFormat("[HELO SERVICE]: Unable to invoke HELO due to malformed URL"); | ||
81 | return String.Empty; | ||
82 | } | ||
83 | |||
78 | HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(m_ServerURI); | 84 | HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(m_ServerURI); |
79 | // Eventually we need to switch to HEAD | 85 | // Eventually we need to switch to HEAD |
80 | /* req.Method = "HEAD"; */ | 86 | /* req.Method = "HEAD"; */ |