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

Some resource URLs generated with '//' in path

    Details

    • Type: Patch
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.0.8
    • Fix Version/s: 4.1.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Some resource URLs are generated with a '//' (instead of a single '/') in the path, which leads to display errors in certain cases.
      This is due to an inconsistent use of the $config->resourceBase variable, as some files and templates in CiviCRM add a '/' after it when they should not as it already ends with a trailing '/' in all cases. This leads to the display of a broken image in certain hosting configurations.

      Correction:

      • replace the 2 instances of ''/i/' with 'i/' (no leading /) in file CRM/Campaign/Page/DashBoard.php
      • replace the 27 instances of 'resourceBase}/' with 'resourceBase}' (no trailing /) in various template files located in the templates directory

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              nganivet Nicolas Ganivet
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 5 minutes
                5m
                Remaining:
                Remaining Estimate - 5 minutes
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified