Skip to content

Commit

Permalink
Fix for possible file inclusion vulnerability in i18n.php
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-reutov committed Aug 16, 2021
1 parent df93775 commit 6fdfef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/inc/i18n.php
Expand Up @@ -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);
Expand Down

0 comments on commit 6fdfef4

Please sign in to comment.