Skip to content

Commit f2d6640

Browse files
committed
fix ambiguous import. It could refer both to a module or a file
1 parent c1fd7a6 commit f2d6640

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javascript/ql/src/experimental/Security/CWE-942/CorsPermissiveConfigurationCustomizations.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import javascript
8-
import Cors
8+
import Cors::Cors
99

1010
/** Module containing sources, sinks, and sanitizers for overly permissive CORS configurations. */
1111
module CorsPermissiveConfiguration {
@@ -78,7 +78,7 @@ module CorsPermissiveConfiguration {
7878
* An express route setup configured with the `cors` package.
7979
*/
8080
class CorsConfiguration extends DataFlow::MethodCallNode {
81-
Cors::Cors corsConfig;
81+
Cors corsConfig;
8282

8383
CorsConfiguration() {
8484
exists(Express::RouteSetup setup | this = setup |
@@ -89,6 +89,6 @@ module CorsPermissiveConfiguration {
8989
}
9090

9191
/** Gets the expression that configures `cors` on this route setup. */
92-
Cors::Cors getCorsConfiguration() { result = corsConfig }
92+
Cors getCorsConfiguration() { result = corsConfig }
9393
}
9494
}

0 commit comments

Comments
 (0)