Skip to content

Commit f1120da

Browse files
javierperezmmage2pratik
authored andcommitted
FIXED: FTP user and password strings urldecoded
1 parent f06f52c commit f1120da

File tree

1 file changed

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

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ 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+
if ( array_key_exists('user', $data) ) $data['user'] = urldecode($data['user']);
113+
if ( array_key_exists('pass', $data) ) $data['pass'] = urldecode($data['pass']);
114+
110115
return $data;
111116
}
112117

0 commit comments

Comments
 (0)