Skip to content

Commit f8d4667

Browse files
committed
add RequestExpr as an alias to NodeJSLib::RequestExpr in Connect.qll
1 parent 98d018c commit f8d4667

File tree

1 file changed

+4
-3
lines changed
  • javascript/ql/lib/semmle/javascript/frameworks

1 file changed

+4
-3
lines changed

javascript/ql/lib/semmle/javascript/frameworks/Connect.qll

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ module Connect {
2424
* but support for other kinds of route handlers can be added by implementing
2525
* additional subclasses of this class.
2626
*/
27-
abstract class RouteHandler extends NodeJSLib::RouteHandler,
28-
DataFlow::ValueNode {
27+
abstract class RouteHandler extends NodeJSLib::RouteHandler, DataFlow::ValueNode {
2928
/**
3029
* Gets the parameter of kind `kind` of this route handler.
3130
*
@@ -109,11 +108,13 @@ module Connect {
109108
override string getCredentialsKind() { result = kind }
110109
}
111110

111+
class RequestExpr = NodeJSLib::RequestExpr;
112+
112113
/**
113114
* An access to a user-controlled Connect request input.
114115
*/
115116
private class RequestInputAccess extends HTTP::RequestInputAccess {
116-
NodeJSLib::RequestExpr request;
117+
RequestExpr request;
117118
string kind;
118119

119120
RequestInputAccess() {

0 commit comments

Comments
 (0)