-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
bug: FTPFS incorrectly parses results of LIST command #506
Comments
Hi Adrian, thanks for the bug report and the quick patch! I also think that the regex should be accepting a large set of characters rather than be conservative. The FTP protocol is really not standardized at all and there are plenty of strand FTP server in the wild, so I'll be happy to merge this patch.
Absolutely! I think we can probably create a new exception here, inheriting |
Thank you for the quick turnaround time @althonos! Is there any chance you could cut a patch release with these changes? Thanks! |
Awesome. I'll try to find time to work on #508 this week. |
I'm connecting to a Linux FTP server that has usernames with a
.
. The current regex ([\w\-]+
) doesn't allow this, and so no directories are listed (side note: would it make sense to error when none of the matchers match and the line isn't empty? It was very confusing at first).According to the Ubuntu manpage for adduser:
Now, some distros may have more stringent restrictions, but I suggest that the regex be expanded to at least accept the pattern mentioned in the manpage for Ubuntu. I think the regex would be
[A-Za-z0-9][A-Za-z0-9\-\.\_\@]*[\$]{0,1}
.If you agree, I opened #507 to address this.
The text was updated successfully, but these errors were encountered: