(cp 2cfa7a3d1) fixes GHSA-6wj3-7fhw-gfpm upgrade/install: make sure user input is sanitized

This commit is contained in:
plegall
2026-05-03 12:04:17 +02:00
parent aaa0309494
commit 1ff9d04534
2 changed files with 13 additions and 59 deletions
+1 -1
View File
@@ -212,7 +212,7 @@ SELECT status
$username = $_POST['username'];
$password = $_POST['password'];
if(function_exists('get_magic_quotes_gpc') && !@get_magic_quotes_gpc() )
if (!function_exists('get_magic_quotes_gpc') or !@get_magic_quotes_gpc())
{
$username = pwg_db_real_escape_string($username);
}