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

proxy bypass does not trim whitespace

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.11.16, 4.0.10, 4.1.5, 4.2
    • Libraries
    • None
    • MOODLE_311_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE

      In Administration -> Server -> HTTP -> Web proxy the field "Proxy bypass hosts" gives the following default value "localhost, 127.0.0.1" and this as a description "Comma separated list of (partial) hostnames or IPs that should bypass proxy (e.g., 192.168., .mydomain.com)"

      However if you try to add a host or IP that should be bypassed by the proxy following the default pattern, that is "coma-space-host" the pattern won't be matched because the white spaces are not trimmed on the comparison.

      The request (made with the Moodle curl lib in my case) is not recognised as an exception and will use the proxy anyway and fail.

            Unassigned Unassigned
            benjamin-unige Benjamin-unige
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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