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
Fix for outroll#2052
  • Loading branch information
myvesta authored Aug 15, 2021
1 parent df11eaf commit 88596a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/inc/i18n.php
Original file line number Diff line number Diff line change
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 88596a8

Please # to comment.