Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Разбор ftp_rawlist() #13

Open
BombermaG opened this issue Jul 7, 2015 · 0 comments
Open

Разбор ftp_rawlist() #13

BombermaG opened this issue Jul 7, 2015 · 0 comments

Comments

@BombermaG
Copy link

https://github.com/ET-NiK/GameAP/blob/master/upload/application/libraries/Files/drivers/Files_ftp.php#L523

$expl = preg_split("/[\s,]+/", $file, 9);

Если имя файла начинается с пробела, то в результате разбора по данной регулярке потеряете пробел.

https://github.com/ET-NiK/GameAP/blob/master/upload/application/libraries/Files/drivers/Files_ftp.php#L541

'type' => substr($expl[0], 0, 1) == 'd' ? 'd' : 'f',

А если симлинк попался? Посчитаете его за файл. Не знаю, насколько это важно, конечно, и как в дальнейшем используются результаты данной функции.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant