Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Invalid Username/EmailAddress When Containing 'onfocus' #3665

Merged
merged 2 commits into from
Apr 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions DNN Platform/Library/Security/PortalSecurity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,26 +62,26 @@ public class PortalSecurity
new Regex("<ilayer[^>]*>.*?</ilayer[^><]*>", RxOptions),
new Regex("<form[^>]*>", RxOptions),
new Regex("</form[^><]*>", RxOptions),
new Regex("onerror", RxOptions),
new Regex("onload", RxOptions),
new Regex("onfocus", RxOptions),
new Regex("onblur", RxOptions),
new Regex("onclick", RxOptions),
new Regex("ondblclick", RxOptions),
new Regex("onchange", RxOptions),
new Regex("onselect", RxOptions),
new Regex("onsubmit", RxOptions),
new Regex("onreset", RxOptions),
new Regex("onkeydown", RxOptions),
new Regex("onkeyup", RxOptions),
new Regex("onkeypress", RxOptions),
new Regex("onmousedown", RxOptions),
new Regex("onmousemove", RxOptions),
new Regex("onmouseout", RxOptions),
new Regex("onmouseover", RxOptions),
new Regex("onmouseup", RxOptions),
new Regex("onreadystatechange", RxOptions),
new Regex("onfinish", RxOptions),
new Regex("\bonerror\b", RxOptions),
new Regex("\bonload\b", RxOptions),
new Regex("\bonfocus\b", RxOptions),
new Regex("\bonblur\b", RxOptions),
new Regex("\bonclick\b", RxOptions),
new Regex("\bondblclick\b", RxOptions),
new Regex("\bonchange\b", RxOptions),
new Regex("\bonselect\b", RxOptions),
new Regex("\bonsubmit\b", RxOptions),
new Regex("\bonreset\b", RxOptions),
new Regex("\bonkeydown\b", RxOptions),
new Regex("\bonkeyup\b", RxOptions),
new Regex("\bonkeypress\b", RxOptions),
new Regex("\bonmousedown\b", RxOptions),
new Regex("\bonmousemove\b", RxOptions),
new Regex("\bonmouseout\b", RxOptions),
new Regex("\bonmouseover\b", RxOptions),
new Regex("\bonmouseup\b", RxOptions),
new Regex("\bonreadystatechange\b", RxOptions),
new Regex("\bonfinish\b", RxOptions),
new Regex("javascript:", RxOptions),
new Regex("vbscript:", RxOptions),
new Regex("unescape", RxOptions),
Expand Down Expand Up @@ -874,7 +874,7 @@ public static bool IsDenied(string roles)
PortalSettings settings = PortalController.Instance.GetCurrentPortalSettings();
return IsDenied(objUserInfo, settings, roles);
}

public static bool IsDenied(UserInfo objUserInfo, PortalSettings settings, string roles)
{
//super user always has full access
Expand Down