From 462003363f7a80c96142ef1cfa9930c508970870 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Fri, 30 Mar 2012 22:49:44 +0300 Subject: [PATCH] Make server ignore media files with unknown filename extensions --- src/server.cpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/server.cpp b/src/server.cpp index e9b236cc..08813f7f 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -3905,12 +3905,25 @@ void Server::fillMediaCache() if(dirlist[j].dir) // Ignode dirs continue; std::string filename = dirlist[j].name; - // if name contains illegal characters, ignore the file + // If name contains illegal characters, ignore the file if(!string_allowed(filename, TEXTURENAME_ALLOWED_CHARS)){ - errorstream<<"Server: ignoring illegal file name: \"" + infostream<<"Server: ignoring illegal file name: \"" <