js1 has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have some perl code to change a user's password. This forwards the password into an html template file with the following html:
<input type="hidden" name="old" value="%PASSWORD%"> <input type="hidden" name="new" value="%PASSWORD%"> <input type="hidden" name="new2" value="%PASSWORD%">
If the new password contains a double quote then not all the password is actually read in e.g If my password was Tra"la then the html would be:
which passed the value Tra.<input type="hidden" name="new" value="Tra"la">
I tried taking out the quote around the value, but then I had a problem if someone put a > character in their password.
Can any monks help me out please?
Thanks,
js1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: password problem with non-alphanumerics
by tinita (Parson) on May 07, 2004 at 10:38 UTC | |
|
Re: password problem with non-alphanumerics
by Corion (Patriarch) on May 07, 2004 at 10:42 UTC | |
by js1 (Monk) on May 07, 2004 at 12:35 UTC | |
|
Re: password problem with non-alphanumerics
by exussum0 (Vicar) on May 07, 2004 at 13:16 UTC | |
by hmerrill (Friar) on May 07, 2004 at 13:50 UTC | |
by exussum0 (Vicar) on May 07, 2004 at 13:54 UTC |