do_smb if auth->password contains '@' or '/'?

Kalle Olavi Niemitalo <[email protected]>
Newsgroups gmane.comp.web.links
Message-ID <[email protected]>
In do_smb, we have:

		add_to_string(&string, "smb://");
		add_to_string(&string, auth->user);
		add_char_to_string(&string, ':');
		add_to_string(&string, auth->password);
		add_char_to_string(&string, '@');
		add_to_string(&string, uri_string);
		url = string.source;

So if there is already '@' or '/' as part of auth->password, then
the result seems to become ambiguous.
- Is it possible to have "@" or '/' in auth->password, or would
  they have already been converted to "%40" and "%2F" before
  do_smb runs?
- If there are multiple @ signs, can libsmbclient parse the URL
  correctly anyway?
- Should encode_uri_string be used here instead of add_to_string?

_______________________________________________
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev
signature.asc (application/pgp-signature, 188 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGAwf4Hm9IGt60eMgRArCNAJ9E/VhyhK270caQm3Sk+JNnwoQLTwCeOSik
Q9VCiXcJBl8vaO5ZwSmlrJs=
=5dtG
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.