From 4c71a67bbb00c136c39900afaa79d3c1933d710d Mon Sep 17 00:00:00 2001 From: zeldakatze Date: Mon, 29 Sep 2025 15:10:48 +0200 Subject: workaround for wordpress not matching special characters with \w --- icalExport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'icalExport.php') diff --git a/icalExport.php b/icalExport.php index 5d6d5f3..4c44c42 100644 --- a/icalExport.php +++ b/icalExport.php @@ -121,7 +121,7 @@ function doICalExport(WP_REST_Request $request) { /* get the view information */ // TODO sanitization!? - $calendarView = infocalendar_getViewByName($request['slug']); + $calendarView = infocalendar_getViewByName(urldecode($request['slug'])); if($calendarView == null) die("unknown view"); -- cgit v1.2.3