Fixed possible issue occurring when multiple namespaces are added to the URL (e.h. Help.Customize.MainPage).

This commit is contained in:
Dario Solera 2009-10-22 12:40:56 +00:00
parent 9e9ceb2ec7
commit e37abcf39f
3 changed files with 8 additions and 4 deletions

View file

@ -28,7 +28,7 @@ namespace ScrewTurn.Wiki {
if(ext != "ashx" && ext != "aspx") return;
// Extract the current namespace, if any
string nspace = GetCurrentNamespace();
string nspace = GetCurrentNamespace() + "";
if(!string.IsNullOrEmpty(nspace)) pageName = pageName.Substring(nspace.Length + 1); // Trim Namespace. from pageName
string queryString = ""; // Empty or begins with ampersand, not question mark