Skip to content

Commit 0cf21a6

Browse files
author
Stanislav Idolov
authored
ENGCOM-2570: [Backport] FIXED: FTP user and password strings urldecoded #17246
2 parents 78cddfc + 34ffac7 commit 0cf21a6

File tree

1 file changed

+6
-0
lines changed
  • lib/internal/Magento/Framework/System

1 file changed

+6
-0
lines changed

lib/internal/Magento/Framework/System/Ftp.php

+6
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ public function validateConnectionString($string)
105105
if ($data['scheme'] != 'ftp') {
106106
throw new \Exception("Support for scheme unsupported: '{$data['scheme']}'");
107107
}
108+
109+
// Decode user & password strings from URL
110+
foreach (array_intersect(array_keys($data), ['user','pass']) as $key) {
111+
$data[$key] = urldecode($data[$key]);
112+
}
113+
108114
return $data;
109115
}
110116

0 commit comments

Comments
 (0)