1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Warn about unsupported file extensions for media

This commit is contained in:
Zughy 2023-08-06 14:16:00 +02:00 committed by GitHub
parent c816aa5374
commit 98f097dc2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View file

@ -2513,7 +2513,7 @@ bool Server::addMediaFile(const std::string &filename,
{
// If name contains illegal characters, ignore the file
if (!string_allowed(filename, TEXTURENAME_ALLOWED_CHARS)) {
infostream << "Server: ignoring illegal file name: \""
warningstream << "Server: ignoring file as it has disallowed characters: \""
<< filename << "\"" << std::endl;
return false;
}