[completed: 588] Fixed (or rather worked-around) bug in directory path manipulation.
This commit is contained in:
parent
2e1eb1813d
commit
4529c06a2f
2 changed files with 5 additions and 4 deletions
|
@ -16,5 +16,5 @@ using System.Reflection;
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Revision and Build Numbers
|
// You can specify all the values or you can default the Revision and Build Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
[assembly: AssemblyVersion("3.0.4.567")]
|
[assembly: AssemblyVersion("3.0.4.568")]
|
||||||
[assembly: AssemblyFileVersion("3.0.4.567")]
|
[assembly: AssemblyFileVersion("3.0.4.568")]
|
|
@ -286,6 +286,7 @@ namespace ScrewTurn.Wiki {
|
||||||
|
|
||||||
if(!directory.StartsWith("/")) directory = "/" + directory;
|
if(!directory.StartsWith("/")) directory = "/" + directory;
|
||||||
if(!directory.EndsWith("/")) directory += "/";
|
if(!directory.EndsWith("/")) directory += "/";
|
||||||
|
directory = directory.Replace("//", "/");
|
||||||
|
|
||||||
LoadProviders();
|
LoadProviders();
|
||||||
|
|
||||||
|
@ -370,10 +371,10 @@ namespace ScrewTurn.Wiki {
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private string CurrentDirectory {
|
private string CurrentDirectory {
|
||||||
get {
|
get {
|
||||||
if(ViewState["CurrDir"] != null) return (string)ViewState["CurrDir"];
|
if(ViewState["CurrDir"] != null) return ((string)ViewState["CurrDir"]).Replace("//", "/");
|
||||||
else return "/";
|
else return "/";
|
||||||
}
|
}
|
||||||
set { ViewState["CurrDir"] = value; }
|
set { ViewState["CurrDir"] = value.Replace("//", "/"); }
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void lnkRoot_Click(object sender, EventArgs e) {
|
protected void lnkRoot_Click(object sender, EventArgs e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue