Skip to content

Commit 7866d00

Browse files
javierperezmmage2pratik
authored andcommitted
FIXED: FTP user and password strings urldecoded
1 parent 327d9d5 commit 7866d00

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
@@ -105,6 +105,11 @@ 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+
if ( array_key_exists('user', $data) ) $data['user'] = urldecode($data['user']);
111+
if ( array_key_exists('pass', $data) ) $data['pass'] = urldecode($data['pass']);
112+
108113
return $data;
109114
}
110115

0 commit comments

Comments
 (0)