Commit 7c4356c
committed
fix: correct managed-hook dedup regex and block unresolvable symlinks
install-codex-hooks.sh: managed_pattern only matched commands ending
with whitespace or end-of-string after the .sh filename, missing
shell-quoted forms produced by shlex.quote when runtime_root contains
spaces. Updated the trailing anchor to also accept quote characters so
duplicate Stop hooks are not inserted on reinstall.
loop-read-validator.sh: the realpath-unavailable fallback used the raw
unresolved path for prefix checks, allowing a symlink outside the
project root pointing to a project file to bypass the methodology
analysis read restriction. Added a symlink check that blocks the read
when the path cannot be canonicalized (fail closed).1 parent e61b570 commit 7c4356c
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
107 | 116 | | |
108 | 117 | | |
109 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
0 commit comments