snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

LDAP import - names with apostrophes

Open ghost opened this issue 10 years ago • 10 comments

The LDAP import of names with apostrophes in fails, saying the email address is invalid.

Apostrophes ARE valid in email addresses.

ghost avatar Jul 20 '16 14:07 ghost

May you give an example of such address?

bruce2004x avatar Jul 26 '16 15:07 bruce2004x

john.o'[email protected]

ghost avatar Jul 26 '16 15:07 ghost

One of two issues here:

  1. Either the Laravel email validator has a bug and isn't accepting email addresses with apostrophes

or

  1. because we escape characters on the way in, the email address it's actually trying to create is an HTML-ified version of the email address, like john.o'[email protected]

snipe avatar Jul 26 '16 21:07 snipe

Well - it also won't let you create the user manually, with an apostrophe in the email address, when hitting save it says invalid email format.

This leans me towards number (1) !

ghost avatar Jul 27 '16 07:07 ghost

Blergh. I posted this already but it somehow got lost.

The thing is that we escape all data, including manual entries, on the way in. Bad data only needs one place where you forgot to escape it on the way out for it to become a vector.

We may need to write a custom handler for this.

snipe avatar Jul 27 '16 10:07 snipe

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

stale[bot] avatar Jan 20 '18 09:01 stale[bot]

I have the same problem. Was a fix ever released for this issue?

Steven4x4 avatar Mar 12 '18 23:03 Steven4x4

I am also experiencing this as an issue. I would be very interested in any fixes/handlers that have been posited and/or implemented

davidplatts avatar Mar 19 '18 14:03 davidplatts

Also having the same issue. Any workarounds or fixes available?

netman63 avatar Nov 29 '18 19:11 netman63

Any update on a fix for this?

andrefecto avatar Dec 18 '18 17:12 andrefecto