aboutsummaryrefslogtreecommitdiff
path: root/lib/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/functions.php')
-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 {