Results 1 to 5 of 5

Thread: Email encoding

  1. #1
    New user
    Join Date
    08-02-09.
    Posts
    2

    Default Email encoding

    Typolight uses the encodeEmail function in String.php to encode email addresses found in the content - but when encoded the "page source" looks like:
    href="mailto:en ... etc
    This is still fairly easy to search (i.e. scrape) for email addresses because the "mailto: bit is unencoded and any scraper just needs to search to the next double quote.

    On other sites I have manually encoded email addresses with the mailto: part also encoded as mailto:
    on these sites that have been around for ages I have had almost no spam leakage of the email addresses.

    Is there any way through hooks etc that I could do a second pass on the encode looking for the href="mailto: and converting it to href="mailto: - or would I need to hack String.php - and if so how do I go about submitting a change

  2. #2
    Core developer
    Official Contao Team
    leo's Avatar
    Join Date
    06-04-09.
    Location
    Wuppertal, Germany
    Posts
    201

    Default Re: Email encoding

    The mailto links only work if the "mailto:" part is not encoded, I believe.

  3. #3
    New user
    Join Date
    08-02-09.
    Posts
    2

    Default Re: Email encoding

    That is not my experience - the email links on http://www.workflowconsulting.co.uk/contact.htm encode the mailto: part as well and work fine on Firefox, IE6-8, Opera under Windows (those are all I have specifically tested) .

  4. #4
    Core developer
    Official Contao Team
    leo's Avatar
    Join Date
    06-04-09.
    Location
    Wuppertal, Germany
    Posts
    201

    Default Re: Email encoding

    Then you should probably create a ticket

  5. #5
    New user
    Join Date
    09-03-09.
    Posts
    15

    Default Re: Email encoding

    probably this is of your interest
    i did the same with a custom script
    (in your sample the seperator was # in mine its a "\n" (bots hate this?))

    http://www.biooffice.at/index.php/contact_us.html
    you can find the encode/decode function too
    greets

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •