Skip to content

Commit 8258e37

Browse files
committed
use PascalCase for URLConstructorLabel
1 parent d27a378 commit 8258e37

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

javascript/ql/src/experimental/Security/CWE-094-dataURL/CodeInjection.ql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ class WorkerThreads extends DataFlow::Node {
5151
}
5252
}
5353

54-
class URLConstructorLabel extends FlowLabel {
55-
URLConstructorLabel() { this = "URLConstructorLabel" }
54+
class UrlConstructorLabel extends FlowLabel {
55+
UrlConstructorLabel() { this = "UrlConstructorLabel" }
5656
}
5757

5858
/**
@@ -66,7 +66,7 @@ class Configuration extends TaintTracking::Configuration {
6666
override predicate isSink(DataFlow::Node sink) { sink instanceof DynamicImport }
6767

6868
override predicate isSink(DataFlow::Node sink, FlowLabel label) {
69-
sink instanceof WorkerThreads and label instanceof URLConstructorLabel
69+
sink instanceof WorkerThreads and label instanceof UrlConstructorLabel
7070
}
7171

7272
override predicate isSanitizer(DataFlow::Node node) { node instanceof Sanitizer }
@@ -79,7 +79,7 @@ class Configuration extends TaintTracking::Configuration {
7979
pred = newUrl.getArgument(0)
8080
) and
8181
predlbl instanceof StandardFlowLabel and
82-
succlbl instanceof URLConstructorLabel
82+
succlbl instanceof UrlConstructorLabel
8383
}
8484
}
8585

0 commit comments

Comments
 (0)