Add WebCms

This commit is contained in:
2016-11-07 12:56:17 -05:00
parent dfe92218f4
commit 15911f33c0
2750 changed files with 365672 additions and 133 deletions
+25
View File
@@ -0,0 +1,25 @@
<%@ Page Language="C#" AutoEventWireup="true" Inherits="System.Web.UI.Page" %>
<script runat="server">
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
global::umbraco.presentation.preview.PreviewContent.ClearPreviewCookie();
if (!Uri.IsWellFormedUriString(Request.QueryString["redir"], UriKind.Relative))
{
Response.Redirect("/", true);
}
Uri url;
if (!Uri.TryCreate(Request.QueryString["redir"], UriKind.Relative, out url))
{
Response.Redirect("/", true);
}
if (Request.QueryString["redir"].StartsWith("//"))
{
Response.Redirect("/", true);
}
Response.Redirect(url.ToString(), true);
}
</script>