summaryrefslogtreecommitdiff
path: root/Project-Unite/Global.asax.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Project-Unite/Global.asax.cs')
-rw-r--r--Project-Unite/Global.asax.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Project-Unite/Global.asax.cs b/Project-Unite/Global.asax.cs
index 79df7eb..4e9b93d 100644
--- a/Project-Unite/Global.asax.cs
+++ b/Project-Unite/Global.asax.cs
@@ -68,6 +68,13 @@ namespace Project_Unite
actionname = split[2];
}
+ try
+ {
+ string paramsequence = actionname.Substring(actionname.IndexOf("?"));
+ actionname = actionname.Replace(paramsequence, "");
+ }
+ catch { }
+
var asm = Assembly.GetExecutingAssembly();
var ctl = asm.GetTypes().FirstOrDefault(x => x.Name == controllername + "Controller");
var adm = ctl.GetCustomAttributes(false).FirstOrDefault(x => x is RequiresAdmin);