Skip to content

Commit ce36be3

Browse files
committed
Use absolute path for CdlObject in CDL.qll
1 parent 2c3fa4f commit ce36be3

File tree

1 file changed

+1
-1
lines changed
  • javascript/frameworks/cap/lib/advanced_security/javascript/frameworks/cap

1 file changed

+1
-1
lines changed

javascript/frameworks/cap/lib/advanced_security/javascript/frameworks/cap/CDL.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ abstract class CdlObject extends JsonObject {
2121
// `$location` values in the generated JSON data are, therefore, relative to the
2222
// base directory of the project.
2323
path =
24-
locValue.getJsonFile().getParentContainer().getRelativePath().regexpReplaceAll("/$", "") +
24+
locValue.getJsonFile().getParentContainer().getAbsolutePath().regexpReplaceAll("/$", "") +
2525
"/" + locValue.getPropValue("file").getStringValue() and
2626
if
2727
not exists(locValue.getPropValue("line")) and

0 commit comments

Comments
 (0)