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 f1120da commit cd7fbb6Copy full SHA for cd7fbb6
lib/internal/Magento/Framework/System/Ftp.php
@@ -109,8 +109,9 @@ public function validateConnectionString($string)
109
}
110
111
// Decode user & password strings from URL
112
- if ( array_key_exists('user', $data) ) $data['user'] = urldecode($data['user']);
113
- 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]);
114
+ }
115
116
return $data;
117
0 commit comments