fix: [internal] Properly convert `hostname|port` when delimiter is `:`

pull/6418/head
Jakub Onderka 2020-10-11 11:17:36 +02:00
parent 8c6ad2b414
commit ace025e085
1 changed files with 1 additions and 2 deletions

View File

@ -1650,8 +1650,7 @@ class Attribute extends AppModel
break;
case 'hostname|port':
$value = strtolower($value);
str_replace(':', '|', $value);
break;
return str_replace(':', '|', $value);
case 'boolean':
if ('true' == trim(strtolower($value))) {
$value = 1;