mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
make sure keywords of parameters/dparameters are stripped of leading and trailing whitespase, as this meets the expectation later on. Otherwise keys in the parameters/dparameters structure may not be found/identified
This commit is contained in:
parent
ebbae18a41
commit
6c60ce367a
@ -737,7 +737,7 @@ class Net_IMAP extends Net_IMAPProtocol {
|
||||
if(is_array($_structure[8][1])) {
|
||||
foreach($_structure[8][1] as $key => $value) {
|
||||
if($key%2 == 0) {
|
||||
$part->dparameters[strtoupper($_structure[8][1][$key])] = $_structure[8][1][$key+1];
|
||||
$part->dparameters[trim(strtoupper($_structure[8][1][$key]))] = $_structure[8][1][$key+1];
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -807,7 +807,7 @@ class Net_IMAP extends Net_IMAPProtocol {
|
||||
if(is_array($_structure[8][1])) {
|
||||
foreach($_structure[8][1] as $key => $value) {
|
||||
if($key%2 == 0) {
|
||||
$part->dparameters[strtoupper($_structure[8][1][$key])] = $_structure[8][1][$key+1];
|
||||
$part->dparameters[trim(strtoupper($_structure[8][1][$key]))] = $_structure[8][1][$key+1];
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -820,7 +820,7 @@ class Net_IMAP extends Net_IMAPProtocol {
|
||||
if(is_array($_structure[9][1])) {
|
||||
foreach($_structure[9][1] as $key => $value) {
|
||||
if($key%2 == 0) {
|
||||
$part->dparameters[strtoupper($_structure[9][1][$key])] = $_structure[9][1][$key+1];
|
||||
$part->dparameters[trim(strtoupper($_structure[9][1][$key]))] = $_structure[9][1][$key+1];
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -853,14 +853,14 @@ class Net_IMAP extends Net_IMAPProtocol {
|
||||
if(is_array($_structure[1])) {
|
||||
foreach($_structure[1] as $key => $value) {
|
||||
if($key%2 == 0) {
|
||||
$part->parameters[strtoupper($_structure[1][$key])] = $_structure[1][$key+1];
|
||||
$part->parameters[trim(strtoupper($_structure[1][$key]))] = $_structure[1][$key+1];
|
||||
}
|
||||
}
|
||||
}
|
||||
if(is_array($_structure[2])) {
|
||||
foreach($_structure[2] as $key => $value) {
|
||||
if($key%2 == 0) {
|
||||
$part->parameters[strtoupper($_structure[2][$key])] = $_structure[2][$key+1];
|
||||
$part->parameters[strtoupper(trim($_structure[2][$key]))] = $_structure[2][$key+1];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user