1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
Daniel Neto 2024-01-23 10:12:37 -03:00
parent f28b528a21
commit a4ff188110
3 changed files with 19 additions and 4 deletions

View file

@ -4,6 +4,7 @@ global $t;
// filter some security here
if (!empty($_GET['lang'])) {
$_GET['lang'] = str_replace(["'", '"', """, "'"], ['', '', '', ''], xss_esc($_GET['lang']));
$_GET['lang'] = preg_replace('/[^a-z0-9\._-]/i', '', $_GET['lang']);
}
includeLangFile();