protected void CrossAppCopy(object sender, EventArgs e) { if (!CurrentUser.OperateTasks) { Response.StatusCode = 401; return; } var match = AppParser.Match(Hidden.Value); if (!match.Success) { return; } var task = new CrossAppCopyTask(match.Groups[3].Value, match.Groups[4].Value.UrlDecode(), RelativePath, match.Groups[2].Success ? match.Groups[2].Value : Request.GetPassword()); task.Start(); Response.Redirect("/Task/Details/" + task.ID); }
protected void CrossAppCopy(object sender, EventArgs e) { if (!CurrentUser.OperateTasks) { Response.StatusCode = 401; return; } var match = AppParser.Match(Hidden.Value); if (!match.Success) return; var task = new CrossAppCopyTask(match.Groups[3].Value, match.Groups[4].Value.UrlDecode(), RelativePath, match.Groups[2].Success ? match.Groups[2].Value : Request.GetPassword()); task.Start(); Response.Redirect("/Task/Details/" + task.ID); }