mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-10-30 21:52:00 +01:00
fixes GHSA-6wj3-7fhw-gfpm upgrade/install: make sure user input is sanitized
This commit is contained in:
1 parent
5277a7dee4
commit
2cfa7a3d19
2 files changed
+13
-59
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user