Repository navigation
Commit 8eec43f
Only save translations for installed modules and languages
translate_save.php built the path of the .inc file it writes from the
posted module and lang values without checking them, so a module such as
"../../files/probe" wrote files/probe.inc, and other values could write
.inc files elsewhere on the server. Only System Admin editors can reach
the page, but the files are later read as translations.
Both values must now be an installed module (or common/styles) and an
installed language; otherwise nothing is written and an error is shown.
The editor itself (translate.php) falls back to the defaults for unknown
values instead of reading from a path built out of them.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016CP89WVmGZ1VVCCZMS6ntN1 parent a16e3f9 commit 8eec43f
2 files changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
24 | 33 | | |
25 | 34 | | |
26 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
22 | 34 | | |
23 | 35 | | |
24 | 36 | | |
| |||
0 commit comments