Skip to content

Commit

Permalink
fix: added missing sanitizing of language code
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Jan 15, 2022
1 parent 031979f commit efdb875
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions phpmyfaq/index.php
Expand Up @@ -277,6 +277,13 @@
}
}

//
// Sanitize language string
//
if (!Language::isASupportedLanguage($lang)) {
$lang = $faqConfig->getDefaultLanguage();
}

//
// Found a search string?
//
Expand Down

0 comments on commit efdb875

Please sign in to comment.