diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2026-02-27 15:39:03 +0100 |
|---|---|---|
| committer | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2026-02-27 15:39:55 +0100 |
| commit | 6f64700943a6ad8293a16428a22ee5c50b5e744c (patch) | |
| tree | 5834a43cec0c01217654484a6186cc8e1390bcf5 | |
| parent | ebf0ebe0e6bf25f75f669e98cf7e887a5098987a (diff) | |
use RFC 5987 encoding when value contains `%`, fixes #6214
Closes #6214
Merge request studip/studip!4760
| -rw-r--r-- | lib/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/functions.php b/lib/functions.php index 8eea475..82fd5ac 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -765,7 +765,7 @@ function legacy_studip_utf8decode($data) */ 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 { |
