0

How do I need to encode special chars in a urls password:

<a href="ftp://user:password@server.com/html">ftp</a>

I have problem if the first character of the password is #

Chrome does change <a href="ftp://user:#password... to ftp://user/password if you click on the link.

PiTheNumber
  • 22,828
  • 17
  • 107
  • 180

1 Answers1

0

ok, got it working if urlencode(password) and htmlspecialchars() over the whole link as described here.

Problem is that FileZilla does not decode the password correctly.

Community
  • 1
  • 1
PiTheNumber
  • 22,828
  • 17
  • 107
  • 180
  • Filezilla is a FTP-CLIENT not a Browser! Register your Server in Filezilla and foreget appear login-informations in your link – donald123 Jul 29 '14 at 07:38
  • @donald123 Yes, it is a FTP client and if you copy a FTP link into Filezilla you get host, username and password with one step. – PiTheNumber Jul 29 '14 at 07:43
  • @Gumbo thank you but `rawurlencode('#')` is still `%23` I think this needs to be fixed in Filezilla. – PiTheNumber Jul 29 '14 at 07:44