craigk5n / webcalendar

WebCalendar is a PHP application used to maintain a calendar for a single user or an intranet group of users. It can also be configured as an event calendar.
http://www.k5n.us/webcalendar.php
GNU General Public License v2.0
148 stars 70 forks source link

Cannot export entries #391

Closed AxelDuerrbaum closed 11 months ago

AxelDuerrbaum commented 11 months ago

Hello,

the export of entries always fails with the error message

WebCalendar Error Fatal Error: Invalid form request

The variable $_REQUEST['csrf_form_key'] is empty, so preventHacking() fails.

Used version of Webcalendar is v1.9.1-82-g9b7b3a55 OS: Debian 11.7 with PHP 7.4.33

0 preventHacking(em, ) called at [/opt/WWW/webcalendar/includes/formvars.php:175] #1 getGetValue(em)

called at [/opt/WWW/webcalendar/includes/classes/WebCalendar.php:717] #2 WebCalendar->_initConnect() called at [/opt/WWW/webcalendar/includes/classes/WebCalendar.php:979] #3 WebCalendar->_doInit(2) called at [/opt/WWW/webcalendar/includes/classes/WebCalendar.php:1002] #4 WebCalendar->initializeSecondPhase() called at [/opt/WWW/webcalendar/includes/init.php:72] #5 include_once(/opt/WWW/webcalendar/includes/init.php) called at [/opt/WWW/webcalendar/export_handler.php:15]

craigk5n commented 11 months ago

Hopefully fixed with the commit shown here.