You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifmediatype==lib.MediaType.SOUNDandtype(data) =="string" then
225
+
ifmediatype==lib.MediaType.FONTand ((langmaskandband(langmask, LOCALE_MASK) ==0) ornot (langmaskorlocale_is_western)) then
226
+
-- ignore fonts that aren't flagged as supporting local glyphs on non-western clients
227
+
returnfalse
228
+
end
229
+
iftype(data) =="string" and (mediatype==lib.MediaType.BACKGROUNDormediatype==lib.MediaType.BORDERormediatype==lib.MediaType.STATUSBARormediatype==lib.MediaType.SOUND) then
227
230
localpath=data:lower()
228
-
-- Only ogg and mp3 are valid sounds.
229
-
ifnotpath:find(".ogg", nil, true) andnotpath:find(".mp3", nil, true) then
231
+
ifnotpath:find("^interface") then
232
+
-- files accessed via path only allowed from interface folder
233
+
returnfalse
234
+
end
235
+
ifmediatype==lib.MediaType.SOUNDandnot (path:find(".ogg", nil, true) orpath:find(".mp3", nil, true)) then
236
+
-- Only ogg and mp3 are valid sounds.
230
237
returnfalse
231
238
end
232
239
end
233
240
ifnotmediaTable[mediatype] thenmediaTable[mediatype] = {} end
0 commit comments