From 62d58edf3e4d0682815a56bfaf058d66f93609fb Mon Sep 17 00:00:00 2001 From: Elmar Ludwig Date: Fri, 27 Feb 2026 15:39:03 +0100 Subject: use RFC 5987 encoding when value contains `%`, fixes #6214 Closes #6214 Merge request studip/studip!4760 --- lib/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions.php b/lib/functions.php index a6bad21..066b482 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -1140,7 +1140,7 @@ function studip_json_encode($data, $options = 0) */ function encode_header_parameter($name, $value) { - if (preg_match('/[\200-\377]/', $value)) { + if (preg_match('/[%\200-\377]/', $value)) { // use RFC 5987 encoding (ext-parameter) return $name . "*=UTF-8''" . rawurlencode($value); } else { -- cgit v1.0