mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
ensure that team names are valid utf8
This commit is contained in:
parent
bd61d4fd8d
commit
4abec32123
1 changed files with 8 additions and 0 deletions
|
|
@ -60,6 +60,14 @@ class UploadProvider extends BaseProvider {
|
|||
return 'Invalid key';
|
||||
}
|
||||
|
||||
if (!mb_check_encoding($red, 'UTF-8')) {
|
||||
$red = 'RED';
|
||||
}
|
||||
|
||||
if (!mb_check_encoding($blu, 'UTF-8')) {
|
||||
$blu = 'BLU';
|
||||
}
|
||||
|
||||
$hash = hash_file('md5', $demoFile);
|
||||
|
||||
$existingDemo = $this->demoProvider->demoIdByHash($hash);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue