mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-07-19 23:50:37 +02:00
Fix for possible file inclusion vulnerability in i18n.php
This commit is contained in:
@@ -24,7 +24,7 @@ function _translate() {
|
||||
|
||||
// Load language file (if not loaded yet)
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user