phpfm icon indicating copy to clipboard operation
phpfm copied to clipboard

System charset fix [1.7.8]

Open xtr3mz opened this issue 4 years ago • 2 comments

file list will cause problem under chinese windows system.

fix: line 1836 change "ISO-8859-1" to "GB2312"

中文系统下,文件目录错误。 1836行,将 ISO-8859-1改为 GB2312 即可

xtr3mz avatar Sep 03 '20 09:09 xtr3mz

btw, you can change codes below, using html5

<!DOCTYPE HTML PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> <html xmlns=\"//www.w3.org/1999/xhtml\">

to <!DOCTYPE HTML> <html>

and

<script language=\"Javascript\" type=\"text/javascript\"> to <script>

xtr3mz avatar Sep 03 '20 10:09 xtr3mz

line 830: better with try catch, this won't throw error

                try{
                    $ref = $obj->getfolder($path);
                    $total_size = intval($ref->size);
                }catch(Exception $e){
                    $total_size = "0";
                }
                $obj = null;
                unset($obj);

xtr3mz avatar Sep 15 '20 07:09 xtr3mz