little confusion with \r\n

"Thomas E. Horner" <[email protected]>
Newsgroups gmane.network.mathopd
Message-ID <[email protected]>

hope to help you save 15 min. of work

a customer of mine got probs with his secure.htpasswd
(his clear-text user-file)
he changed the password (!) and after that mathopd didn't
accept his password any more.

i checked it and saw that he managed to convert the file
(by uploading via ftp) to 'dos-format-linebreaks'


change base64.c on line 157

from 
   if (c == '\n') {
to
   if (c == '\n' || c == '\r') {


and everybody is happy ;)


regards,
   thomas

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
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.