From: Perttu Ahola Date: Fri, 30 Mar 2012 19:49:44 +0000 (+0300) Subject: Make server ignore media files with unknown filename extensions X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=462003363f7a80c96142ef1cfa9930c508970870;p=zefram%2Fminetest%2Fminetest_engine.git Make server ignore media files with unknown filename extensions --- 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: \"" <