Fixed bug in webftp regarding email as ftp-login, fixes #1252

Signed-off-by: Florian Aders (EleRas) <eleras@froxlor.org>
This commit is contained in:
Florian Aders (EleRas)
2013-12-19 08:29:22 +01:00
parent 0fee9a3480
commit 996f53786f

View File

@@ -686,7 +686,7 @@ function killslashes($input) {
function parse_ftp_rawlist($list, $type = "UNIX") {
if ($type == "UNIX") {
$regexp = "/([-ldrswx]{10})[ ]+([0-9]+)[ ]+([-A-Z0-9_]+)[ ]+([-A-Z0-9_]+)[ ]+([0-9]+)[ ]+([A-Z]{3}[ ]+[0-9]{1,2}[ ]+[0-9:]{4,5})[ ]+(.*)/i";
$regexp = "/([-ldrswx]{10})[ ]+([0-9]+)[ ]+([-A-Z0-9_@\.]+)[ ]+([-A-Z0-9_@\.]+)[ ]+([0-9]+)[ ]+([A-Z]{3}[ ]+[0-9]{1,2}[ ]+[0-9:]{4,5})[ ]+(.*)/i";
$i = 0;
foreach ($list as $line) {
$is_dir = $is_link = FALSE;