diff --git a/main/exercice/hotspot_lang_conversion.php b/main/exercice/hotspot_lang_conversion.php index 91765d9260..6f8f342327 100644 --- a/main/exercice/hotspot_lang_conversion.php +++ b/main/exercice/hotspot_lang_conversion.php @@ -5,7 +5,7 @@ $hotspot_lang_file = api_get_path(SYS_LANG_PATH); if(isset($_GET['lang'])) { - $lang = str_replace('../','',urldecode($_GET['lang'])); + $lang = str_replace('../','',str_replace('\\0','',urldecode($_GET['lang']))); if(file_exists($hotspot_lang_file . $lang . '/hotspot.inc.php')) $hotspot_lang_file .= $lang . '/hotspot.inc.php'; else