aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2026-02-27 15:39:03 +0100
committerElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2026-02-27 15:40:38 +0100
commit62d58edf3e4d0682815a56bfaf058d66f93609fb (patch)
tree8dcc6d3560ce6432baa87b8a0f8f56bdc5ae04b2
parent291dc62cba62d841ad92d3fe360d65dbd24f78e3 (diff)
use RFC 5987 encoding when value contains `%`, fixes #6214
Closes #6214 Merge request studip/studip!4760
-rw-r--r--lib/functions.php2
1 files changed, 1 insertions, 1 deletions
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 {