indexdata / yaz

Z39.50 toolkit for C
http://www.indexdata.com/yaz
Other
43 stars 19 forks source link

Spaces in authentication string for yaz-client #101

Open dd217 opened 11 months ago

dd217 commented 11 months ago

Hello, I'm working with a vendor that has a z39.50 target that requires a password. The password we were given by the vendor contains a space. My expectation was that the the code to parse the authentication string would respect single or double quotes so that a password could contain a space. Looking at nmem_strsplit_blank in nmemsdup.c, which is called for tokenizing the authentication string into the username and password, it looks like we're just splitting on any space regardless if part of a string was put in quotes.

Is this something that should actually be addressed, or is this outside the spec of z39.50/ZOOM.