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) ?? "";.
Unassigned Devices - Managing Disk Drives and Remote Shares Outside of The Unraid Array
in Plugin Support
Posted
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) ?? "";.