Helicon Ape web site tab: .htaccess folder names updated

This commit is contained in:
Ruslan Keba 2013-03-25 17:06:31 +02:00
parent 45d1cfddf6
commit b472a1d6f4
2 changed files with 13 additions and 1 deletions

View file

@ -34,7 +34,7 @@
<asp:HyperLink ID="lnkEditHeliconApeFolder" runat="server"
NavigateUrl='<%# GetEditControlUrl("edit_htaccessfolder", Eval("Path").ToString()) %>'
CssClass="NormalBold">
<%# Eval("Path")%>
<%# GetHtaccessPathOnSite((string)Eval("Path")) %>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>

View file

@ -359,5 +359,17 @@ namespace WebsitePanel.Portal
e.Cancel = true;
}
protected string GetHtaccessPathOnSite(string path)
{
path = path.Replace('\\', '/');
if (!path.EndsWith("/"))
{
path += "/";
}
path += ".htaccess";
return path;
}
}
}