mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
remove % from names
This commit is contained in:
parent
8890984d38
commit
e0c11cf4cf
1 changed files with 1 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ class UploadProvider extends BaseProvider {
|
|||
public function upload(string $key, string $red, string $blu, string $name, string $demoFile): string {
|
||||
$nameParts = explode('/', $name);
|
||||
$name = array_pop($nameParts);
|
||||
$name = str_replace('%', '_', $name);
|
||||
|
||||
$user = $this->userProvider->byKey($key);
|
||||
if (!$user || ('' !== $this->uploadKey && $this->uploadKey !== $key)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue