Commit 9965f16
committed
fix: 404 error on retrieving snippet content in symlinked dir
os.path.realpath also resolves symlinks. We only want to resolve
'..' to prevent escaping the snippet roots, os.path.abspath does
this.
This commit also adds some logging be able to better analyze other
potential problems.1 parent 03bbaea commit 9965f16
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| 43 | + | |
41 | 44 | | |
0 commit comments