mirror of https://github.com/BOINC/boinc.git
- minor security fix for online help page
This commit is contained in:
parent
1a1a01c103
commit
55bb13a441
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue