Topic: advProfil e-mail
Lena
avatar
Noob
Noob
Posts: 11

Posted:
Mar 24, 2007

At first thanks a lot for accepting my account and for this great modul.

But there is one little thing i can't figure out: the femail is shown in the form

mailuser [] domain.tld
instead of
mailuser@domain.tld

In the database is the femail correct including the ampersand.

Can anybody tell me how to fix it?

Thanks a lot

Lena
Lena
avatar
Noob
Noob
Posts: 11

Posted:
Mar 24, 2007

What for is this in pnuser.php line 81-83?

Code
  1. if ($field['LABEL'] == '_UFAKEMAIL') {
  2.             $userinfo[$alias] = str_replace("@", " [ ] ", $userinfo[$alias]);
  3.         }


icon_confused Lena

P.S.: I have commented it and everything works as expected



edited by: Lena, Mar 24, 2007 - 05:06 PM
Chestnut
avatar
Site Admin
Posts: 1320

Posted:
Mar 25, 2007

Hey Lena

The replacement of the @ by [ ] is to prevent robots to read the email address (as an email address) and thus reducing potential spamming.

Various methods are used to read and collect emails on pages and this is one of the (also) various ways to get around it.

icon_wink



Chestnut ! Cool
Site Admin
Lena
avatar
Noob
Noob
Posts: 11

Posted:
Mar 25, 2007

Hi Chestnut,

that was my first suggestion. But it's realy a hard solution. As i remeber there are some scripts out there to scramble the email-address in a way that it is still usable but only for a browser (i think its a kind of &number; string).
Or what will happen if you replace with &s;?
The idea preventing spam of cause is fine, but a usable string to use i.e. in a mailto: is fine to.
Will be fine to solve both problems. My php-knowledge is not at a high level, just anought to path a little but i will see what i can find out.

Greetings

Lena