Jump to content

andyjy12

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by andyjy12

  1. Hello:

    I encountered the following issue while mounting SMB from 2023.06.02 to 2023.05.06. If there's a Non-ASCII code in the path name, it will be corrupted by safe_name($string,false.'$share_name = true') in UTF-8 coding.

     

    For instance:
    [//192.168.1.1/文件]
    protocol = "SMB"
    ip = "192.168.1.1"
    path = "文件"
    share = "文件"

     

    This cannot be correctly mounted.
    To correct this, modify the function get_samba_mounts() in lib.php:
    Replace $string = safe_name($device, false, true); ==> $string = safe_name($device, false, false);
    Replace $mount['share'] = safe_name($mount['share'], false, true) ?? ""; ==> $mount['share'] = safe_name($mount['share'], false, false) ?? "";.

×
×
  • Create New...