zamentur / libreto

Collaborative notebook based on framapad
http://libreto.net
GNU General Public License v3.0
23 stars 5 forks source link

PHP errors in read mode "Array and string offset access syntax with curly braces is no longer supported" #13

Open Lab-8916100448256 opened 4 months ago

Lab-8916100448256 commented 4 months ago

With recent version of PHP, when accessing a libreto in read mode there are errors like the following :

PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /var/www/libreto/libreto/libreto/vendor/htmlpurifier/library/HTMLPurifier/TagTransform/Font.php on line 78"

I tried using the latest version of HTMLPurifier but it lead to other errors. Using this commit of the library fixed the errors : https://github.com/ezyang/htmlpurifier/commit/b88fcd180c1d358baa2cf2346d0bb7e02fded20a