Skip to content

Commit b2d5484

Browse files
Apply review suggestion
Co-authored-by: Michael Nebel <[email protected]>
1 parent 52841e9 commit b2d5484

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csharp/ql/lib/semmle/code/csharp/security/auth/MissingFunctionLevelAccessControlQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ private predicate physicalRouteMatches(string route, string actual) {
9292
route = actual
9393
or
9494
route.charAt(0) = "~" and
95-
exists(string dir | actual = dir + route.substring(1, route.length()) + ".cs")
95+
exists(string dir | actual = dir + route.suffix(1) + ".cs")
9696
}
9797

9898
/** An expression that indicates that some authorization/authentication check is being performed. */

0 commit comments

Comments
 (0)