mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
fixes GHSA-gphq-34pv-gvf3 sanity check for table prefix during install
This commit is contained in:
@@ -266,6 +266,15 @@ if (isset($_POST['install']))
|
|||||||
|
|
||||||
pwg_db_check_charset();
|
pwg_db_check_charset();
|
||||||
|
|
||||||
|
if (
|
||||||
|
strlen($prefixeTable) > 20
|
||||||
|
or preg_match('/^\d/', $prefixeTable)
|
||||||
|
or !preg_match('/^[a-zA-Z0-9_$]*$/u', $prefixeTable)
|
||||||
|
)
|
||||||
|
{
|
||||||
|
$errors[] = 'invalid table prefix';
|
||||||
|
}
|
||||||
|
|
||||||
$webmaster = trim(preg_replace('/\s{2,}/', ' ', $admin_name));
|
$webmaster = trim(preg_replace('/\s{2,}/', ' ', $admin_name));
|
||||||
if (empty($webmaster))
|
if (empty($webmaster))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user