Public bug reported:

After unattended-upgrades on Ubuntu 20.04 with Ubuntu Pro (esm-apps enabled),
Roundcube started returning HTTP 500 when opening some messages.

PHP error:
PHP Parse error: syntax error, unexpected 'private' (T_PRIVATE)
in /usr/share/roundcube/program/lib/Roundcube/rcube_washtml.php on line 527

Inspection shows a syntax error earlier in the file:

/usr/share/roundcube/program/lib/Roundcube/rcube_washtml.php:509
if ($attr_value === $val) {{

The double '{' causes unbalanced braces and triggers the parse error.

Fix:
Changing it to a single '{' resolves the issue immediately:
if ($attr_value === $val) {

Environment:
- Ubuntu 20.04 (focal)
- roundcube-core 1.4.3+dfsg.1-1ubuntu0.1~esm6
- Installed from: https://esm.ubuntu.com/apps/ubuntu focal-apps-security

Notes:
- dpkg -V did not report this file as modified
- Issue only affects messages that trigger HTML sanitization path

** Affects: roundcube (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2144777

Title:
  roundcube-core 1.4.3+dfsg.1-1ubuntu0.1~esm6 contains PHP syntax error
  in rcube_washtml.php

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/roundcube/+bug/2144777/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to