]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - image.c
Merge MR 'Set groundentity when sv_gameplayfix_downtracesupportsongroundflag detects...
[xonotic/darkplaces.git] / image.c
diff --git a/image.c b/image.c
index 9f07ce60f174a955f89474114062eb19bb8358eb..ed498ed6562ce832080410a4fc25a9378aeb4727 100644 (file)
--- a/image.c
+++ b/image.c
@@ -1084,6 +1084,9 @@ unsigned char *loadimagepixelsbgra (const char *filename, qbool complain, qbool
        for (format = firstformat;format->formatstring;format++)
        {
                dpsnprintf (name, sizeof(name), format->formatstring, basename);
+
+               FS_SanitizePath(name);
+
                if(FS_FileExists(name) && (f = FS_LoadFile(name, tempmempool, true, &filesize)) != NULL)
                {
                        mymiplevel = miplevel ? *miplevel : 0;