Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-4393

Erroneous formating on email notifications on profile submission

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Won't Fix
    • Affects Version/s: 2.2.2
    • Fix Version/s: 4.3.0
    • Component/s: CiviCRM Profile
    • Labels:
      None

      Description

      Hi,

      Another good reason not to encode html within php: the fields of type links or files are displayed:

      ===========================================================
      Test Profile
      ===========================================================
      Country : France
      First Name : Xavier
      Last Name : Dutoit
      Email : bdfg@dsfou.com
      National party : sdfsdf
      Post code :
      City :
      Gender : Female
      Website : <a href="http://google.com">http://google.com</a>
      Picture : <a href='javascript:imagePopUp("/civicrm/file?reset=1&id=3&eid=1");'><img src="/civicrm/file?reset=1&id=3&eid=1" width=100 height=100/></a>

      1) the mail isn't html, so obviously, html code doesn't make it
      2) for the picture, neither the js nor the link without the domain name

      I strongly suggest to not format the fields in the php, but to pass the field type in the assign table, and leave the template do its job and format it the way it wants

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              xavier xavier dutoit
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: