special password characters break backup_roundcube.php and restore_roundcube.php

Version 1.55

Bugfix
Finished

The new default da_admin passwords, as decided by the setup.sh, now have special characters. This can cause issues with php's parse_ini_file function, as the password in the mysql.conf should be "quoted" for this case. However, the mysql.conf is read by DA and cannot be used. Simple fix is to check the loaded password after the parse_ini_file call, and if it's not long enough to be a valid password, the backup method is used. This will read the /var/www/html/roundcube/config/config.inc.php with an include_once, making it's parsing very easy and reliable, so this fallback could almost be preferred.

Interested to try DirectAdmin? Get a 30-day Free Trial!