Fixed certified Microsoft moment.

This commit is contained in:
flash 2025-03-23 01:08:33 +00:00
parent d99562db16
commit 6642ce70c8
Signed by: flash
GPG key ID: 2C9C2C574D47FE3E
2 changed files with 5 additions and 5 deletions

View file

@ -1 +1 @@
0.2503.221959
0.2503.230108

View file

@ -1,7 +1,7 @@
<?php
// MultipartFormContent.php
// Created: 2025-03-12
// Updated: 2025-03-15
// Updated: 2025-03-23
namespace Index\Http\Content;
@ -174,10 +174,10 @@ class MultipartFormContent implements FormContent, Iterator {
continue;
$value = trim($infoParts[1]);
if(!str_starts_with($value, '"') || !str_ends_with($value, '"'))
continue;
if(str_starts_with($value, '"') && str_ends_with($value, '"'))
$value = substr($value, 1, -1);
$info[$name] = urldecode(substr($value, 1, -1));
$info[$name] = urldecode($value);
}
return $info;