Diff of /trunk/IdealistViewer/Application/Protocol.cs
Parent Directory
|
Revision Log
|
Patch
| revision 31, Thu Oct 30 01:35:20 2008 UTC | revision 32, Thu Oct 30 02:38:09 2008 UTC | |
|---|---|---|
| # | Line 198 | Line 198 |
| 198 | { | { |
| 199 | ||
| 200 | ||
| 201 | if (!loginURI.EndsWith("/")) | //if (!loginURI.EndsWith("/")) |
| 202 | loginURI += "/"; | // loginURI += "/"; |
| 203 | ||
| 204 | string[] locationparse = loginURI.Split('/'); | // string[] locationparse = loginURI.Split('/'); |
| 205 | try | // try |
| 206 | { | // { |
| 207 | string end = locationparse[locationparse.Length - 2]; | // string end = locationparse[locationparse.Length - 2]; |
| 208 | if (end != locationparse[2]) | // if (end != locationparse[2]) |
| 209 | { | // { |
| 210 | loginURI = ""; | // loginURI = ""; |
| 211 | for (int i = 0; i < 3; i++) | // for (int i = 0; i < 3; i++) |
| 212 | { | // { |
| 213 | if (locationparse[i].Length != 0 || i==1) | // if (locationparse[i].Length != 0 || i==1) |
| 214 | loginURI += locationparse[i] + "/"; | // loginURI += locationparse[i] + "/"; |
| 215 | } | // } |
| 216 | } | // } |
| 217 | ||
| 218 | } | //} |
| 219 | catch (Exception) | // catch (Exception) |
| 220 | { | //{ |
| 221 | //startlocation = "last"; | //startlocation = "last"; |
| 222 | m_log.Warn("[URLPARSING]: Unable to parse URL provided!"); | // m_log.Warn("[URLPARSING]: Unable to parse URL provided!"); |
| 223 | } | //} |
| 224 | ||
| 225 | ||
| 226 | } | } |
| 227 | ||
| 228 | loginParams.URI = loginURI; | loginParams.URI = loginURI; |
| 229 | ||
| 230 | ||
| 231 | if (startlocation != "last" && startlocation != "home") | |
| 232 | startlocation = NetworkManager.StartLocation(startlocation,128,128,0); | |
| 233 | ||
| 234 | loginParams.Start = startlocation; | loginParams.Start = startlocation; |
| 235 | ||
| 236 | return loginParams; | return loginParams; |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

