We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c6bead commit 7da0345Copy full SHA for 7da0345
javascript/ql/src/Security/CWE-020/IncompleteUrlSchemeCheck.ql
@@ -18,14 +18,10 @@ class DangerousScheme extends string {
18
DangerousScheme() { this = "data:" or this = "javascript:" or this = "vbscript:" }
19
20
/** Gets the name of this scheme without the `:`. */
21
- string getWithoutColon() {
22
- this = result + ":"
23
- }
+ string getWithoutColon() { this = result + ":" }
24
25
/** Gets the name of this scheme, with or without the `:`. */
26
- string getWithOrWithoutColon() {
27
- result = this or result = getWithoutColon()
28
+ string getWithOrWithoutColon() { result = this or result = getWithoutColon() }
29
}
30
31
/** Returns a node that refers to the scheme of `url`. */
0 commit comments