1 (edited by vegard 2006-04-07 10:08)

Topic: Case sensitive e-mail

hello all,

(I've tried to search for an answer but haven't found one.)

it seems that PunBB forces all e-mail adresses to be all lowercase. I now have a case where some users have some letters in their mail adress in uppercase - First.Last@theirserver.tld - and their mail server does not allow e-mails to first.last@theirserver.tld, which naturally causes their registrations to bounce to me.

I've tried to change their adresses as admin to include the uppercase letters, but it is again forced to lowercase. And when registring an account with an adress like this it is forced to lowercase.

is there anyway to allow for uppercase letters in e-mail adresses? I haven't found it in any admin settings, but I guess I could change it in the source code (my php skills are minimal so I would need quite a detailed explanation I'm afraid...)

running PunBB 1.2.11


best,
Vegard

2

Re: Case sensitive e-mail

You can remove the relevant 'strtolower' from register.php and profile.php

$email1 = strtolower(trim($_POST['req_email1']));

To

$email1 = trim($_POST['req_email1']);

etc

Re: Case sensitive e-mail

thanks Elzar, works like a charm!

for others, these are the lines in PunBB 1.2.11 that needs to be altered:

in register.php: line 89 + 94
in profile.php: line 210 + 718

remove strtolower( at the beginning and one ) at the end on all lines.


best, Vegard

Re: Case sensitive e-mail

There's a case sensitive mail server out there? Why, god, why?

"Programming is like sex: one mistake and you have to support it for the rest of your life."