Commit c07716b
committed
Switch the static files to using a simplified
The problem with using `realpath` is that static assets can use symbolic
links. In fact PG does this with static assets that reside in the same
directory as the problem file by default. The `realpath` will not be a
subdirectory of the temporary directory in that case. So `canonpath`
must be used instead. It does not resolve symbolic links, or even
things like `../` in paths. Of course the `path_is_subdir` checks those
things.path_is_subdir method from webwork2.1 parent eb1f1a2 commit c07716b
1 file changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
5 | 18 | | |
6 | 19 | | |
7 | 20 | | |
8 | | - | |
| 21 | + | |
9 | 22 | | |
10 | 23 | | |
11 | 24 | | |
| |||
0 commit comments