AndyTaylorTweet / Pi-Star_DV_Dash

Pi-Star DV Dashboard (Based on works by Hans-J. Barthen (DL5DI) and Kim Huebel (DG9VH)).
http://www.pistar.uk/downloads/
111 stars 120 forks source link

DMR password "sometimes" getting empty and mmdvmhost unable to start #86

Closed narspt closed 9 months ago

narspt commented 5 years ago

This problem is not really new, I did just check why/when it happens and found that it is related to DMRGateway/DMR2YSF/DMR2NXDN password "none", actually it is very easy to reproduce:

You can either sort it by changing configure.php to ensure password is always quoted (i.e. when applying settings with DMR mode disabled) or just update DMR_Hosts.txt on your server to use any password different than "none" for DMRGateway/DMR2YSF/DMR2NXDN, as I guess any password works for these?

Alternatively... if you have more of these issues with quotes (and I guess you may have some at least with editor pages also...) did you ever consider using parse_ini_file(..., true, INI_SCANNER_RAW) to completely handle ini's without quotes? seeing that sample ini's coming with DV programs also don't have quotes I guess they don't really require it, you probably add them just to be able to read them on php I guess...

narspt commented 9 months ago

I'm closing this because I did check and this is not a problem anymore, actually the password getting blank still happens at pistar level but doesn't cause any problem with relatively recent mmdvmhost versions, because now it uses/requires password only for direct connections to masters.