mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update
This commit is contained in:
parent
f28b528a21
commit
a4ff188110
3 changed files with 19 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue