Commit e73cfd1
committed
path_utils: Strip trailing path separators
Path may well end with a '/', e.g. URLs. So strip them away since
otherwise mp_basename finds the wrong part of the given path. In case of
the 'filename' property this simply results in it being set to the whole
URL. But in case of the %f/%F screenshot-template specifiers it may
result in a broken screenshot path, if %f occurs before the first '/'.1 parent f37e372 commit e73cfd1
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| |||
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
0 commit comments