JavaScript: Autoformat

This commit is contained in:
Anders Schack-Mulligen
2023-02-17 12:24:39 +01:00
parent 21d5fa836b
commit 8d97fe9ed3
65 changed files with 320 additions and 172 deletions

View File

@@ -35,7 +35,8 @@ module UnsafeJQueryPlugin {
* An argument that may act as an HTML fragment rather than a CSS selector, as a sink for remote unsafe jQuery plugins.
*/
class AmbiguousHtmlOrSelectorArgument extends DataFlow::Node,
DomBasedXss::JQueryHtmlOrSelectorArgument {
DomBasedXss::JQueryHtmlOrSelectorArgument
{
AmbiguousHtmlOrSelectorArgument() {
// any fixed prefix makes the call unambiguous
not exists(getAPrefix())
@@ -175,7 +176,8 @@ module UnsafeJQueryPlugin {
/**
* An argument that may act as an HTML fragment rather than a CSS selector, as a sink for remote unsafe jQuery plugins.
*/
class AmbiguousHtmlOrSelectorArgumentAsSink extends Sink instanceof AmbiguousHtmlOrSelectorArgument {
class AmbiguousHtmlOrSelectorArgumentAsSink extends Sink instanceof AmbiguousHtmlOrSelectorArgument
{
AmbiguousHtmlOrSelectorArgumentAsSink() { not isLikelyIntentionalHtmlSink(this) }
}