mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-20 09:09:33 +00:00
Use uniqid with more entropy to reduce probability of collisions
This commit is contained in:
parent
015a72321d
commit
cede73e767
1 changed files with 1 additions and 1 deletions
|
|
@ -1017,7 +1017,7 @@ class OEMSecretsProvider implements InfoProviderInterface
|
|||
$sheetName = basename($urlComponents['path']);
|
||||
if (strpos($sheetName, '.') === false || !preg_match('/\.(pdf|doc|docx|xls|xlsx|ppt|pptx)$/i', $sheetName)) {
|
||||
// If the name does not have a valid extension, assign a default name
|
||||
$sheetName = 'datasheet_' . uniqid() . '.pdf';
|
||||
$sheetName = 'datasheet_' . uniqid('', true) . '.pdf';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue