mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
Fix for possible file inclusion vulnerability in i18n.php
Fix for https://github.com/serghey-rodin/vesta/issues/2052
This commit is contained in:
parent
df11eaf33f
commit
88596a8cd9
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ function _translate() {
|
||||||
|
|
||||||
// Load language file (if not loaded yet)
|
// Load language file (if not loaded yet)
|
||||||
if (!isset($LANG[$l])) {
|
if (!isset($LANG[$l])) {
|
||||||
require_once($_SERVER['DOCUMENT_ROOT']."/inc/i18n/$l.php");
|
require_once($_SERVER['DOCUMENT_ROOT']."/inc/i18n/".basename($l).".php");
|
||||||
}
|
}
|
||||||
|
|
||||||
//if (!isset($LANG[$l][$key])) file_put_contents('/somewhere/something.log', "$key\n", FILE_APPEND);
|
//if (!isset($LANG[$l][$key])) file_put_contents('/somewhere/something.log', "$key\n", FILE_APPEND);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue