1
0
Fork 0

Fix regex, refs #6735

pull/6728/merge
Jordi Boggiano 2017-11-28 18:00:05 +01:00
parent 8a136d18e5
commit 3c76e36e2c
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ class RemoteFilesystem
$this->redirects = 1; // The first request counts.
// capture username/password from URL if there is one
if (preg_match('{^https?://([^:]+):([^@]+)@([^/]+)}i', $fileUrl, $match)) {
if (preg_match('{^https?://([^:/]+):([^@/]+)@([^/]+)}i', $fileUrl, $match)) {
$this->io->setAuthentication($originUrl, urldecode($match[1]), urldecode($match[2]));
}