Skip to content

Commit 0506b61

Browse files
author
Alexandros Ioannides
authored
Roundcube fixes for PHP 7.4 compatibility
1 parent 721e257 commit 0506b61

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

install/hst-install-ubuntu.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,6 +1525,14 @@ if [ "$dovecot" = 'yes' ] && [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
15251525
sed -i "s/localhost/$servername/g" /etc/roundcube/plugins/password/config.inc.php
15261526
mysql roundcube < /usr/share/dbconfig-common/data/roundcube/install/mysql
15271527

1528+
# Fixes for PHP 7.4 compatibility
1529+
sed -i 's/\"\\n\", $identities/$identities, \"\\n\"/g' /usr/share/roundcube/plugins/enigma/lib/enigma_ui.php
1530+
sed -i 's/(array_keys($post_search), \x27|\x27)/(\x27|\x27, array_keys($post_search))/g' /usr/share/roundcube/program/lib/Roundcube/rcube_contacts.php
1531+
sed -i 's/implode($name, \x27.\x27)/implode(\x27.\x27, $name)/g' /usr/share/roundcube/program/lib/Roundcube/rcube_db.php
1532+
sed -i 's/$fields, \x27,\x27/',', $fields/g' /usr/share/roundcube/program/steps/addressbook/search.inc
1533+
sed -i 's/implode($fields, \x27,\x27)/implode(\x27,\x27, $fields)/g' /usr/share/roundcube/program/steps/addressbook/search.inc
1534+
sed -i 's/implode($bstyle, \x27; \x27)/implode(\x27; \x27, $bstyle)/g' /usr/share/roundcube/program/steps/mail/sendmail.inc
1535+
15281536
# Configure webmail alias
15291537
echo "WEBMAIL_ALIAS='webmail'" >> $HESTIA/conf/hestia.conf
15301538

0 commit comments

Comments
 (0)