sabre-io / Baikal

Baïkal is a Calendar+Contacts server
https://sabre.io/baikal/
GNU General Public License v3.0
2.5k stars 289 forks source link

Getting special character error when trying to edit calendar from web admin #1128

Closed chirmstream closed 1 year ago

chirmstream commented 2 years ago

Baikal version: 0.9.2

Expected behaviour: Clicking edit calendar for a user opens a prompt to change calendar name, color, description, and check todos and notes. Current behaviour: Browser outputs error: `ErrorException: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/baikal/Core/Frameworks/Formal/Element/Text.php:69 Stack trace:

0 [internal function]: Baikal\Framework::exception_error_handler()

1 /var/www/baikal/Core/Frameworks/Formal/Element/Text.php(69): htmlspecialchars()

2 /var/www/baikal/Core/Frameworks/Formal/Form.php(354): Formal\Element\Text->render()

3 /var/www/baikal/Core/Frameworks/BaikalAdmin/Controller/User/Calendars.php(82): Formal\Form->render()

4 /var/www/baikal/Core/Frameworks/Flake/Core/Render/Container.php(69): BaikalAdmin\Controller\User\Calendars->render()

5 /var/www/baikal/Core/Frameworks/Flake/Controller/Page.php(90): Flake\Core\Render\Container->renderBlocks()

6 /var/www/baikal/html/admin/index.php(90): Flake\Controller\Page->render()

7 {main}`

Steps to reproduce:

  1. Add .ics event to calendar from iphone.
  2. Calendar now has special characters and is bugged.
  3. I can though, create another calendar, and add the same event and the special characters will not bug that calendar.
  4. Deleting the event does not fix the issue.
BobWs commented 1 year ago

Same problem on Baikal version: 0.9.2

ErrorException: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/baikal/Core/Frameworks/Formal/Element/Text.php:69
Stack trace:
#0 [internal function]: Baikal\Framework::exception_error_handler(8192, 'htmlspecialchar...', '/var/www/baikal...', 69)
#1 /var/www/baikal/Core/Frameworks/Formal/Element/Text.php(69): htmlspecialchars(NULL)
#2 /var/www/baikal/Core/Frameworks/Formal/Form.php(354): Formal\Element\Text->render()
#3 /var/www/baikal/Core/Frameworks/BaikalAdmin/Controller/User/Calendars.php(82): Formal\Form->render()
#4 /var/www/baikal/Core/Frameworks/Flake/Core/Render/Container.php(69): BaikalAdmin\Controller\User\Calendars->render()
#5 /var/www/baikal/Core/Frameworks/Flake/Controller/Page.php(90): Flake\Core\Render\Container->renderBlocks()
#6 /var/www/baikal/html/admin/index.php(90): Flake\Controller\Page->render()
#7 {main}
ByteHamster commented 1 year ago

Duplicate of #1117