Skip to content

Commit 9836da8

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

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

install/hst-install-debian.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,6 +1579,15 @@ if [ "$dovecot" = 'yes' ] && [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
15791579
fi
15801580
fi
15811581
fi
1582+
1583+
# Fixes for PHP 7.4 compatibility
1584+
sed -i 's/\"\\n\", $identities/$identities, \"\\n\"/g' /usr/share/roundcube/plugins/enigma/lib/enigma_ui.php
1585+
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
1586+
sed -i 's/implode($name, \x27.\x27)/implode(\x27.\x27, $name)/g' /usr/share/roundcube/program/lib/Roundcube/rcube_db.php
1587+
sed -i 's/$fields, \x27,\x27/',', $fields/g' /usr/share/roundcube/program/steps/addressbook/search.inc
1588+
sed -i 's/implode($fields, \x27,\x27)/implode(\x27,\x27, $fields)/g' /usr/share/roundcube/program/steps/addressbook/search.inc
1589+
sed -i 's/implode($bstyle, \x27; \x27)/implode(\x27; \x27, $bstyle)/g' /usr/share/roundcube/program/steps/mail/sendmail.inc
1590+
15821591
# Configure webmail alias
15831592
echo "WEBMAIL_ALIAS='webmail'" >> $HESTIA/conf/hestia.conf
15841593

0 commit comments

Comments
 (0)