mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 01:25:20 +02:00
Warn about unsupported file extensions for media
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user