Skip to content

Commit 29e57ab

Browse files
author
Stanislav Idolov
authored
ENGCOM-2569: [Backport] FIXED: FTP user and password strings urldecoded #17247
2 parents 34705e6 + cbb9870 commit 29e57ab

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ public function validateConnectionString($string)
107107
if ($data['scheme'] != 'ftp') {
108108
throw new \Exception("Support for scheme unsupported: '{$data['scheme']}'");
109109
}
110+
111+
// Decode user & password strings from URL
112+
foreach (array_intersect(array_keys($data), ['user', 'pass']) as $key) {
113+
$data[$key] = urldecode($data[$key]);
114+
}
115+
110116
return $data;
111117
}
112118

0 commit comments

Comments
 (0)