summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/scripts/render_rules.py
diff options
context:
space:
mode:
authorMohamed Hegazy <mhegazy@anthropic.com>2026-10-20 23:10:25 +0000
committerClaude <noreply@anthropic.com>2026-10-20 23:10:25 +0000
commit984a7d4c9db1cd2f91033ee38d9105ddaaefb3c3 (patch)
tree08ffe054e5158c354b0b2a454ac59991b4f674f8 /plugins/code-modernization/scripts/render_rules.py
parent703af71f6f1c8884cb741c586f359a59a3733c39 (diff)
security-guidance: match edited paths when the repo folder is spelled in another case
On file systems that ignore case, realpath keeps the case a path was given in, so an edit recorded as /TMP/x/REPO/app.py for a repo at /tmp/x/repo was counted as outside the repo. Fold case (and, on macOS, normalize) the whole path and the root before taking the relative path, not only the result.
Diffstat (limited to 'plugins/code-modernization/scripts/render_rules.py')
0 files changed, 0 insertions, 0 deletions