1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00

remove unecessary error

This commit is contained in:
DanielnetoDotCom 2020-11-30 15:21:41 -03:00
parent 91de769585
commit 5daa8640cb

View file

@ -25,7 +25,7 @@ if (!empty($_POST['base64Url'])) {
foreach ($filterURL as $key => $value) {
if (!empty($_GET[$value])) {
if (!filter_var($_GET[$value], FILTER_VALIDATE_URL) || !preg_match("/^http.*/i", $_GET[$value])) {
_error_log($value.' attack ' . json_encode($_SERVER), AVideoLog::$SECURITY);
//_error_log($value.' attack ' . json_encode($_SERVER), AVideoLog::$SECURITY);
unset($_GET[$value]);
}else{
$_GET[$value] = str_replace(array("'",'"',"<",">"), array("","","",""), $_GET[$value]);