Skip to content

Commit bd28511

Browse files
author
Stanislav Idolov
authored
🔃 [EngCom] Public Pull Requests - 2.1-develop
Accepted Public Pull Requests: - #17247: [Backport] FIXED: FTP user and password strings urldecoded (by @mage2pratik)
2 parents 34705e6 + 29e57ab commit bd28511

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)