Closed (fixed)
Project:
Link
Version:
6.x-2.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jul 2008 at 12:00 UTC
Updated:
6 Oct 2008 at 04:22 UTC
Hello.
I use the Module for a Linklist at a German University. Some of the Groups I try to link to do not have a Website. So I want to link there Mail Adresses.
Putting "mailto:somemailadress@web.de" works as expected, but this is not the correct Mail Adress.
"mailto:some-mail.adress-uni@web.de" does not work ("Not a valid URL."), but this is the Mail Adress. Is there some easy way to go around this or is work on the Code needed for this?
Thanks for the Module and your help in advance.
JThan
Comments
Comment #1
JThan commentedHello.
I think this is a bug because valid Mail Adresses are rejected.
I do not know much about php and RegEx but i tried to figure it out. I did not get somewhere really, but I will describe what I think.Maybe it helps, maybe it's just confusing. Here it is:
If I give this regEx into a Validator in the web (e.g. http://www.perfectweb.com/resources/preg_match.php )
and give it this text: 'some-mail.adress-uni' it will work.
So I think the problem is not the regEx.
As I understand, this one should be true for mail and give back the Mail-Adress:
But it seems to fail. Why?
I do not know.
This is the $email_pattern
It should validate: 'mailto:some-mail.adress-uni@web.de' but it looks liek it does not. It validates 'mailto:somemailadress@web.de' but as soon as I enter '.' or '-' it says: 'Not a valid URL.'
I can not understand why.
Comment #2
Moonshine commentedI think that's an error in:
With that, I believe that $query pattern has to be matched... you may want to try this:
Maybe that will help ?
Comment #3
JThan commentedHello.
Works great!
Thank you! Can someone put this in the code?
I hope I put this to the correct status now, if not, please change (I am new here, so please forgive and tell me if I did something wrong).
JThan
Comment #4
quicksketchThanks again Moonshine. I've committed the change to both Drupal 5 and 6 versions.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.