Skip to content

Commit de01b24

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

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

install/upgrade/versions/latest.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,13 @@ if [ "$WEB_SYSTEM" = "apache2" ] && [ ! -e "/etc/apt/sources.list.d/apache2.list
2828
fi
2929
fi
3030
fi
31+
32+
# Roundcube fixes for PHP 7.4 compatibility
33+
if [ -d /usr/share/roundcube ]; then
34+
sed -i 's/\"\\n\", $identities/$identities, \"\\n\"/g' /usr/share/roundcube/plugins/enigma/lib/enigma_ui.php
35+
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
36+
sed -i 's/implode($name, \x27.\x27)/implode(\x27.\x27, $name)/g' /usr/share/roundcube/program/lib/Roundcube/rcube_db.php
37+
sed -i 's/$fields, \x27,\x27/',', $fields/g' /usr/share/roundcube/program/steps/addressbook/search.inc
38+
sed -i 's/implode($fields, \x27,\x27)/implode(\x27,\x27, $fields)/g' /usr/share/roundcube/program/steps/addressbook/search.inc
39+
sed -i 's/implode($bstyle, \x27; \x27)/implode(\x27; \x27, $bstyle)/g' /usr/share/roundcube/program/steps/mail/sendmail.inc
40+
fi

0 commit comments

Comments
 (0)