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

cli - set $_SERVER['HTTP_HOST'] from CIVICRM_UF_BASEURL

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.0
    • Fix Version/s: 4.4.1
    • Component/s: CiviMail
    • Labels:
      None

      Description

      See the discussion at http://forum.civicrm.org/index.php/topic,30462.0.html (Use -s option when sending CiviMail via CLI)

      The issue I found is that the html2text package uses $SERVER['HTTP_HOST'] when converting relative URL links to absolute. Tinkering with packages seems to be a bad idea (and a number of packages refer to $SERVER['HTTP_HOST'] such as dompdf, html2text, kcfinder, Net, Pager, and tcpdf). The best bet is to change cli.class.php to default $SERVER['HTTP_HOST'] to the server name contained in the CIVICRM_UF_BASEURL, rather than 'localhost' as is currently done. That would minimise the need to use the -s parameter.

      See PR https://github.com/civicrm/civicrm-core/pull/1893

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ken Ken West
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: