- minor security fix for online help page

This commit is contained in:
David Anderson 2013-05-03 15:11:37 -07:00
parent 1a1a01c103
commit 55bb13a441
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@
require_once("docutil.php");
require_once("help_db.php");
require_once("help_funcs.php");
require_once("spoken_languages.php");
$lang = $_GET["lang"];
@ -126,6 +127,9 @@ function show_vols($vols) {
}
if ($lang) {
if (!is_spoken_language($lang)) {
boinc_error_page("Not a recognized language");
}
page_head("Online Help in $lang");
} else {
page_head("Online Help in all languages");