Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1653

Emulate "CURLINFO_REDIRECT_URL" option in "kCurlHelper" class

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Needs Changes
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.2.2
    • Component/s: Other
    • Labels:
      None
    • Change Log Group:
      Fixed
    • Change Log Message:
      The CKEditor styles weren't loaded when Web Server has older cURL version installed.
    • Story Points:
      1
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      Plan:

      1. the "kCurlHelper::Send" method uncomment line, that enables usage of the "CURLOPT_HEADERFUNCTION" cURL option
      2. define "CURLINFO_REDIRECT_URL" with "1048607" value, when it's not available in "kCurlHelper" class constructor
      3. when "kCurlHelper::getInfo" option is used with "CURLINFO_REDIRECT_URL" constant as value, then:
        1. iterate over headers in "kCurlHelper::requestHeaders" property
        2. if header, that starts with "Location:" is found, then return what's coming after ":" trimmed
        3. if such header isn't found, then return "false"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
                Reviewer:
                Erik Snarski [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 6.3h
                  6.3h