Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-48521

Curl should not return error message in place of content

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 2.8.1
    • Files API
    • MOODLE_28_STABLE
    • Moderate

      When a curl::request() fails, the method returns the error message. This is not ideal as it means that developers could easily confuse error messages and valid content if they do not check curl::$errno.

      This issue should:

      • return false when the request has failed
      • update the usage of curl everywhere to handle this new return value
      • provide upgrade instructions for developers

      I do not think this is a security issue as it really depends on how the developer has implement its code, however it makes sense to fix in master to prevent further risks.

      Reported by ankit_frenz on MDL-48496.

            ankit_frenz Ankit Agarwal
            fred Frédéric Massart
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.