We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7866d00 commit a1ebbeeCopy full SHA for a1ebbee
lib/internal/Magento/Framework/System/Ftp.php
@@ -107,8 +107,9 @@ public function validateConnectionString($string)
107
}
108
109
// Decode user & password strings from URL
110
- if ( array_key_exists('user', $data) ) $data['user'] = urldecode($data['user']);
111
- if ( array_key_exists('pass', $data) ) $data['pass'] = urldecode($data['pass']);
+ foreach (array_intersect(array_keys($data), ['user','pass']) as $key) {
+ $data[$key] = urldecode($data[$key]);
112
+ }
113
114
return $data;
115
0 commit comments