mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
fix(php): ext of loaded file without dot. Fix Bug 66718
This commit is contained in:
@ -199,7 +199,7 @@ if (typeof jQuery != "undefined") {
|
|||||||
jq("#beginView, #beginEmbedded").removeClass("disable");
|
jq("#beginView, #beginEmbedded").removeClass("disable");
|
||||||
|
|
||||||
var fileName = jq("#hiddenFileName").val();
|
var fileName = jq("#hiddenFileName").val();
|
||||||
var posExt = fileName.lastIndexOf('.');
|
var posExt = fileName.lastIndexOf('.') + 1;
|
||||||
posExt = 0 <= posExt ? fileName.substring(posExt).trim().toLowerCase() : '';
|
posExt = 0 <= posExt ? fileName.substring(posExt).trim().toLowerCase() : '';
|
||||||
|
|
||||||
if (EditedExtList.indexOf(posExt) != -1 || FillFormsExtList.indexOf(posExt) != -1) {
|
if (EditedExtList.indexOf(posExt) != -1 || FillFormsExtList.indexOf(posExt) != -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user