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

About REGEX_SMB constant #392

Merged
merged 1 commit into from
Nov 5, 2017
Merged

Conversation

robertocortina
Copy link
Contributor

@robertocortina robertocortina commented Jul 13, 2017

Today I had a problem while using a password with the + character. The library was throwing the BadMethodCallException located at line 155. So, to avoid it I added the + character in the REGEX_SMB constant. This will allow the connector to work with passwords that have such symbol. It would be a good idea to allow more special characters on passwords. I guess a little research would be needed to know which ones should be allowed.

Today I had a problem while using a password with the + character. The library was throwing the BadMethodCallException located at line 155. So, to avoid it I added the + character in the REGEX_SMB constant. This will allow the connector to work with passwords that have such symbol. It would be a good idea to allow more special characters on passwords and maybe users. I guess a little research would be needed to know which ones should be allowed.
@mike42 mike42 merged commit 5389334 into mike42:development Nov 5, 2017
@mike42
Copy link
Owner

mike42 commented Nov 5, 2017

Cheers, agree completely.

Because of the way printing works on Windows (copying to a share path), the regex is necessary to prevent the printer driver from being hijacked to write files to arbitrary paths, in case the printer URL is user-supplied.

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

Successfully merging this pull request may close these issues.

2 participants