* fix for change extension.

This commit is contained in:
z
2020-06-30 10:54:05 +08:00
parent 02e12e7874
commit c94fc50e3b
+1 -1
View File
@@ -39,7 +39,7 @@ function checkExtension(obj)
if(index >= 0)
{
extension = fileName.substr(index + 1);
if(dangerExtensions.lastIndexOf(',' + extension + ','))
if(dangerExtensions.lastIndexOf(',' + extension + ',') >= 0)
{
alert(<?php echo json_encode($this->lang->file->dangerFile);?>);
$(obj).val('');