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

Extensions using addStyleFile() does not enforce https/SSL URL

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.1
    • Fix Version/s: 4.4.2
    • Component/s: None
    • Labels:

      Description

      If I have a site supporting both http and https, I set my extensions URL to the http URL:

      $civicrm_setting['URL Preferences']['extensionsURL'] = 'http://example.org/sites/example.org/extensions/';

      However, if I use the following in an extension:

      $resources = CRM_Core_Resources::singleton();
      $resources->addStyleFile('ca.nodisys.example', 'example.css');

      Then it will always include it with an absolute URL using http, not https, and therefore will not be visible in https. This is inconsistent with how the userFrameworkResourceURL variable is treated.

        Attachments

          Activity

            People

            • Assignee:
              timotten Tim Otten
              Reporter:
              mlutfy Mathieu Lutfy
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: