fix(php): ext of loaded file without dot. Fix Bug 66718

This commit is contained in:
sshakndr
2024-03-05 13:46:14 +07:00
parent f657e5ab4a
commit 36535f89bb

View File

@ -199,7 +199,7 @@ if (typeof jQuery != "undefined") {
jq("#beginView, #beginEmbedded").removeClass("disable");
var fileName = jq("#hiddenFileName").val();
var posExt = fileName.lastIndexOf('.');
var posExt = fileName.lastIndexOf('.') + 1;
posExt = 0 <= posExt ? fileName.substring(posExt).trim().toLowerCase() : '';
if (EditedExtList.indexOf(posExt) != -1 || FillFormsExtList.indexOf(posExt) != -1) {